@Override
  public InstanceGroupResponse newInstanceGroupResponse(InstanceGroupJoinVO group) {
    InstanceGroupResponse groupResponse = new InstanceGroupResponse();
    groupResponse.setId(group.getUuid());
    groupResponse.setName(group.getName());
    groupResponse.setCreated(group.getCreated());

    ApiResponseHelper.populateOwner(groupResponse, group);

    groupResponse.setObjectName("instancegroup");
    return groupResponse;
  }
 @Override
 public void execute() {
   InstanceGroup result = _userVmService.createVmGroup(this);
   if (result != null) {
     InstanceGroupResponse response = _responseGenerator.createInstanceGroupResponse(result);
     response.setResponseName(getCommandName());
     setResponseObject(response);
   } else {
     throw new ServerApiException(
         ApiErrorCode.INTERNAL_ERROR, "Failed to create vm instance group");
   }
 }