class GuestService {

    public void saveGuest(Guest guest) {
        LOGGER.info(() -> "Saving guest " + guest);

        if (isBlank(guest.getPublicId())) {
            guest.setPublicId(randomUUID().toString());
        }

        this.em.persist(guest);

        guestEvents.fire(guest);
    }

    public  GuestService();
    @Inject public  GuestService(@Background Event<Guest> guestEvents);

}