@Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), userRef, httpSession);
    }
@return True if this {@link UserIdentity} has a session and is an attribute value in that session
stroom-security/stroom-security-impl/src/main/java/stroom/security/impl/UserIdentityImpl.java