public ValidateResult validateBlueprint(@RequestBody ClusterCreate createSpec) {
SoftwareManager softwareManager =
clusterMgr.getClusterConfigMgr().getSoftwareManager(
createSpec.getAppManager());
ClusterBlueprint blueprint = createSpec.toBlueprint();
ValidateResult result = new ValidateResult();
boolean validated = false;
try {
validated = softwareManager.validateBlueprint(blueprint);
} catch (ValidationException ve) {
result.setFailedMsgList(ve.getFailedMsgList());
result.setWarningMsgList(ve.getWarningMsgList());
}
result.setValidated(validated);
return result;
}