@Override
  public void execute()
      throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException,
          ConcurrentOperationException, ResourceAllocationException {
    try {
      List<CiscoVnmcControllerVO> ciscoVnmcResources =
          _ciscoVnmcElementService.listCiscoVnmcResources(this);
      ListResponse<CiscoVnmcResourceResponse> response =
          new ListResponse<CiscoVnmcResourceResponse>();
      List<CiscoVnmcResourceResponse> ciscoVnmcResourcesResponse =
          new ArrayList<CiscoVnmcResourceResponse>();

      if (ciscoVnmcResources != null && !ciscoVnmcResources.isEmpty()) {
        for (CiscoVnmcController ciscoVnmcResourceVO : ciscoVnmcResources) {
          CiscoVnmcResourceResponse ciscoVnmcResourceResponse =
              _ciscoVnmcElementService.createCiscoVnmcResourceResponse(ciscoVnmcResourceVO);
          ciscoVnmcResourceResponse.setObjectName("CiscoVnmcResource");
          ciscoVnmcResourcesResponse.add(ciscoVnmcResourceResponse);
        }
      }

      response.setResponses(ciscoVnmcResourcesResponse);
      response.setResponseName(getCommandName());
      this.setResponseObject(response);
    } catch (InvalidParameterValueException invalidParamExcp) {
      throw new ServerApiException(ApiErrorCode.PARAM_ERROR, invalidParamExcp.getMessage());
    } catch (CloudRuntimeException runtimeExcp) {
      throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, runtimeExcp.getMessage());
    }
  }
 @Override
 public void execute()
     throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException,
         ConcurrentOperationException, ResourceAllocationException {
   try {
     boolean result = _ciscoVnmcElementService.deleteCiscoVnmcResource(this);
     if (result) {
       SuccessResponse response = new SuccessResponse(getCommandName());
       response.setResponseName(getCommandName());
       this.setResponseObject(response);
     } else {
       throw new ServerApiException(
           ApiErrorCode.INTERNAL_ERROR, "Failed to delete Cisco Vnmc resource.");
     }
   } catch (InvalidParameterValueException invalidParamExcp) {
     throw new ServerApiException(ApiErrorCode.PARAM_ERROR, invalidParamExcp.getMessage());
   } catch (CloudRuntimeException runtimeExcp) {
     throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, runtimeExcp.getMessage());
   }
 }