NodeGroupCreate groupSpec = spec.getNodeGroup(nodeGroup);
VmSchema schema = new VmSchema();
// prepare resource schema
ResourceSchema resourceSchema = new ResourceSchema();
resourceSchema.name = "Resource Schema";
resourceSchema.cpuReservationMHz = 0;
resourceSchema.memReservationSize = 0;
resourceSchema.numCPUs =
(groupSpec.getCpuNum() == null) ? 0 : groupSpec.getCpuNum();