}
return moduleResource;
}
private static Resource createApplicationDeployment(ApplicationDeployment o) {
AppDeploymentResource resource = new AppDeploymentResource();
if (o != null){
resource.setDeploymentId(o.getDeploymentID());
resource.setAppDes(o.getApplicationDesc());
resource.setAppModuleId(o.getAppModuleID());
resource.setHostId(o.getHostID());
resource.setExecutablePath(o.getExecutablePath());
resource.setParallelism(o.getParallelism());
resource.setModuleResource((AppModuleResource) createApplicationModule(o.getApplicationModule()));
resource.setHostResource((ComputeResourceResource) createComputeResource(o.getComputeResource()));
}
return resource;
}