public ServerAuthContextGBean(
@ParamAttribute(name = "config") String config,
@ParamSpecial(type = SpecialAttributeType.classLoader) ClassLoader classLoader) throws AuthException, JAXBException, IOException, ParserConfigurationException, SAXException, XMLStreamException {
ClassLoaderLookup classLoaderLookup = new ConstantClassLoaderLookup(classLoader);
AuthConfigFactory authConfigFactory = AuthConfigFactory.getFactory();
ServerAuthContextType serverAuthContextType = JaspiXmlUtil.loadServerAuthContext(new StringReader(config));
AuthConfigProvider authConfigProvider = JaspiUtil.wrapServerAuthContext(serverAuthContextType, true, classLoaderLookup);
registrationID = authConfigFactory.registerConfigProvider(authConfigProvider, serverAuthContextType.getMessageLayer(), serverAuthContextType.getAppContext(), null);
}