public static Application get ( final BandwidthClient client , final String id ) throws Exception { assert ( id != null ) ; final String applicationUri = client . getUserResourceInstanceUri ( BandwidthConstants . APPLICATIONS_URI_PATH , id ) ; final JSONObject applicationObj = toJSONObject ( client . get ( applicationUri , null ) ) ; final Application application = new Application ( client , applicationObj ) ; return application ; }
Factory method for Application returns Application object