private User getUser() {
        try {
            final UserIdentity userIdentity = securityContext.getUserIdentity();
            return User.builder()
                    .withId(userIdentity.getSubjectId())
                    .withName(userIdentity.getDisplayName())
                    .build();
        } catch (final RuntimeException e) {
            LOGGER.warn("Problem getting current user", e);
        }

        return null;
    }
Shallow merge of the two Purpose objects
stroom-event-logging/stroom-event-logging-impl/src/main/java/stroom/event/logging/impl/StroomEventLoggingServiceImpl.java