public static Domain get ( final BandwidthClient client , final String id ) throws ParseException , Exception { assert ( client != null ) ; final String domainsUri = client . getUserResourceInstanceUri ( BandwidthConstants . DOMAINS_URI_PATH , id ) ; final JSONObject jsonObject = toJSONObject ( client . get ( domainsUri , null ) ) ; return new Domain ( client , jsonObject ) ; }
Convenience method to return a Domain