private void logEvent(final String username,
                          final boolean wasSuccessful,
                          final String description) {

        stroomEventLoggingService.log(
                "CliCreateInternalIdentityProviderUser",
                LogUtil.message("An account for user {} was created in the internal identity provider", username),
                CreateEventAction.builder()
                        .addUser(User.builder()
                                .withName(username)
                                .build())
                        .withOutcome(Outcome.builder()
                                .withSuccess(wasSuccessful)
                                .withDescription(description)
                                .build())
                        .build());
    }
Creates an account in the internal identity provider
stroom-app/src/main/java/stroom/app/commands/CreateAccountCommand.java