while (Security.getProperty("login.config.url." + n) != null) n++;
    public void afterPropertiesSet() throws Exception {        if (loginConfig == null)            throw new ApplicationContextException("loginConfig must be set on " + getClass());        if (loginContextName == null)            throw new ApplicationContextException("loginContextName must be set on " + getClass());        int n = 1;        while (Security.getProperty("login.config.url." + n) != null) n++;        Security.setProperty("login.config.url." + n, loginConfig.getURL().toString());    }