} catch (BssException be) {
JsonJavaObject jsonObject = be.getResponseJson();
if (jsonObject != null) {
fail("Error creating subscription because: "+jsonObject);
} else {
ClientServicesException cse = getClientServicesException(be);
if (cse != null) {
fail("Error creating subscription because: "+
cse.getResponseStatusCode() + " " +
cse.getReasonPhrase() + " " +
cse.getResponseBody());
} else {
be.printStackTrace();
fail("Error creating subscription because: "+be.getMessage());
}
}