public void newAccountCreated(NewAccountCreatedDto newAccountCreatedDto) {
        ApimanEventHeaders headers = ApimanEventHeaders
             .builder()
             .setId(key(newAccountCreatedDto.getUserId(), newAccountCreatedDto.getTime()))
             .setSource(URI.create("http://replaceme.local/foo"))
             .setSubject("new.account")
             .build();

        AccountSignupEvent accountSignup = AccountSignupEvent
             .builder()
             .setHeaders(headers)
             .setUserId(newAccountCreatedDto.getUserId())
             .setUsername(newAccountCreatedDto.getUsername())
             .setEmailAddress(newAccountCreatedDto.getEmailAddress())
             .setFirstName(newAccountCreatedDto.getFirstName())
             .setSurname(newAccountCreatedDto.getSurname())
             .build();

        LOGGER.debug("Received an account creation event (externally): {0} => translated into: {1}",
             newAccountCreatedDto, accountSignup);

        eventService.fireEvent(accountSignup);
    }
@author Marc Savy {@literal <marc@blackparrotlabs.io>}
manager/api/rest-impl/src/main/java/io/apiman/manager/api/service/SsoEventService.java