try { // Get Network information for MSP ResourceIdentityInfo networkRII = new ResourceIdentityInfo( null, "MSP", "network"); NetworkInfo networkInfo = api.getNetworkInfo( networkRII, true) // Make more calls or process the data you received. … … } catch (…) { // Handle exception processing …