private UserIdentity createServiceUserIdentity() {
        // Delegate creation to an idpType appropriate class
        final UserIdentity userIdentity = serviceUserFactory.createServiceUserIdentity();

        if (userIdentity instanceof final HasRefreshable hasRefreshable) {
            NullSafe.consume(hasRefreshable.getRefreshable(),
                    refreshManager::addOrUpdate);
        }
        return userIdentity;
    }
Refresh the user identity including any tokens associated with that user.

@param userIdentity
stroom-security/stroom-security-common-impl/src/main/java/stroom/security/common/impl/AbstractUserIdentityFactory.java