@Override public void execute() { GuestOS guestOs = _mgr.updateGuestOs(this); if (guestOs != null) { GuestOSResponse response = _responseGenerator.createGuestOSResponse(guestOs); response.setResponseName(getCommandName()); setResponseObject(response); } else { throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to update guest OS type"); } }
@Override public void execute() { final GuestOS guestOs = _mgr.updateGuestOs(this); if (guestOs != null) { final GuestOSResponse response = _responseGenerator.createGuestOSResponse(guestOs); response.setResponseName(getCommandName()); setResponseObject(response); } else { throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to update guest OS type"); } }