@ParamAttribute(name = "authenticationID") String authenticationID,
@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();
AuthModuleType<ServerAuthModule> serverAuthModuleType = JaspiXmlUtil.loadServerAuthModule(new StringReader(config));
AuthConfigProvider authConfigProvider = JaspiUtil.wrapServerAuthModule(messageLayer, appContext, authenticationID, serverAuthModuleType, true, classLoaderLookup);
registrationID = authConfigFactory.registerConfigProvider(authConfigProvider, messageLayer, appContext, null);
}