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