public Optional<User> getByUuid(final DSLContext context, final String uuid) {
        final Optional<User> optUser = context
                .select()
                .from(STROOM_USER)
                .where(STROOM_USER.UUID.eq(uuid))
                .fetchOptional()
                .map(RECORD_TO_USER_MAPPER);
        LOGGER.debug("getByUuid - uuid: {}, returning: {}", uuid, optUser);
        return optUser;
    }
Get user or group by their UUID.
stroom-security/stroom-security-impl-db/src/main/java/stroom/security/impl/db/UserDaoImpl.java