} catch (RemoteException e) {
String errorMsg = "Error while getting available deployment policies for cartridge type " +
cartridgeType+". Cause: "+e.getMessage();;
log.error(errorMsg, e);
throw new RestAPIException(errorMsg, e);
}
}
if(deploymentPolicies.length == 0) {
String errorMsg = "Cannot find any matching deployment policy for Cartridge [type] "+cartridgeType;
log.error(errorMsg);
throw new RestAPIException(errorMsg);
}
return PojoConverter.populateDeploymentPolicyPojos(deploymentPolicies);
}