public IdentitySession getIdentitySession() throws Exception { return identitySessionFactory.getCurrentIdentitySession(realmName); }
public IdentitySession getIdentitySession(String realm) throws Exception { if (realm == null) { throw new IllegalArgumentException("Realm name cannot be null"); } return getIdentitySessionFactory().getCurrentIdentitySession(realm); }
public IdentitySession getIdentitySession() throws Exception { return getIdentitySessionFactory().getCurrentIdentitySession(realmName); }