@Override public void execute() { GuestOSHypervisor guestOsMapping = _mgr.updateGuestOsMapping(this); if (guestOsMapping != null) { GuestOsMappingResponse response = _responseGenerator.createGuestOSMappingResponse(guestOsMapping); response.setResponseName(getCommandName()); setResponseObject(response); } else { throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to update guest OS mapping"); } }
@Override public void execute() { final GuestOSHypervisor guestOsMapping = _mgr.updateGuestOsMapping(this); if (guestOsMapping != null) { final GuestOsMappingResponse response = _responseGenerator.createGuestOSMappingResponse(guestOsMapping); response.setResponseName(getCommandName()); setResponseObject(response); } else { throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to update guest OS mapping"); } }