if (responseContent == null == false) {
responseDoc = objectMapper.readTree(responseContent);
}
if (responseDoc != null) {
MediaServicesCreatedAccount accountInstance = new MediaServicesCreatedAccount();
result.setAccount(accountInstance);
JsonNode accountIdValue = responseDoc.get("AccountId");
if (accountIdValue != null) {
String accountIdInstance;
accountIdInstance = accountIdValue.getTextValue();
accountInstance.setAccountId(accountIdInstance);
}
JsonNode accountNameValue = responseDoc.get("AccountName");
if (accountNameValue != null) {
String accountNameInstance;
accountNameInstance = accountNameValue.getTextValue();
accountInstance.setAccountName(accountNameInstance);
}
JsonNode subscriptionValue = responseDoc.get("Subscription");
if (subscriptionValue != null) {
String subscriptionInstance;
subscriptionInstance = subscriptionValue.getTextValue();
accountInstance.setSubscriptionId(subscriptionInstance);
}
}
result.setStatusCode(statusCode);
if (httpResponse.getHeaders("x-ms-request-id").length > 0) {