logger.info("ResinSpringAuthenticator Started");
logger.info("ResinAcegiAuthenticator Started");
    public void init() throws ServletException {        super.init();        if (appContextLocation == null) {            throw new ServletException("appContextLocation must be defined");        }        if (key == null) {            throw new ServletException("key must be defined");        }        File xml = new File(appContextLocation.getPath());        if (!xml.exists()) {            throw new ServletException(                "appContextLocation does not seem to exist - try specifying WEB-INF/resin-springsecurity.xml");        }        FileSystemXmlApplicationContext ctx = new FileSystemXmlApplicationContext(xml                .getAbsolutePath());        Map beans = ctx.getBeansOfType(AuthenticationManager.class, true, true);        if (beans.size() == 0) {            throw new ServletException(                "Bean context must contain at least one bean of type AuthenticationManager");        }        String beanName = (String) beans.keySet().iterator().next();        authenticationManager = (AuthenticationManager) beans.get(beanName);        logger.info("ResinSpringAuthenticator Started");    }