@Override public void create() { GuestOSHypervisor guestOsMapping = _mgr.addGuestOsMapping(this); if (guestOsMapping != null) { setEntityId(guestOsMapping.getId()); setEntityUuid(guestOsMapping.getUuid()); } else { throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to add guest OS mapping entity"); } }
@Override public void create() { final GuestOSHypervisor guestOsMapping = _mgr.addGuestOsMapping(this); if (guestOsMapping != null) { setEntityId(guestOsMapping.getId()); setEntityUuid(guestOsMapping.getUuid()); } else { throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, "Failed to add guest OS mapping entity"); } }