protected Realm createRealm(Ini ini) {
        //IniRealm realm = new IniRealm(ini); changed to support SHIRO-322
        IniRealm realm = new IniRealm();
        realm.setName(INI_REALM_NAME);
        //added for SHIRO-322
        realm.setIni(ini);
        return realm;
    }
Creates a {@code Realm} from the Ini instance containing account data.

@param ini the Ini instance from which to acquire the account data.
@return a new Realm instance reflecting the account data discovered in the {@code Ini}.
core/src/main/java/org/apache/shiro/ini/IniSecurityManagerFactory.java