try {
autoscalerServiceClient
.deployDeploymentPolicy(deploymentPolicy);
} catch (RemoteException e) {
log.error(e.getMessage(), e);
throw new RestAPIException(e.getMessage(), e);
} catch (AutoScalerServiceInvalidPolicyExceptionException e) {
String message = e.getFaultMessage().getInvalidPolicyException().getMessage();
log.error(message, e);
throw new RestAPIException(message, e);
}
}
StratosAdminResponse stratosAdminResponse = new StratosAdminResponse();