private static void loadXMLConfig(URL loginConfigURL)
throws Exception
{
if(loginConfigURL == null)
throw new IllegalArgumentException("loginConfigURL is null");
SecurityConfigObjectModelFactory lcomf = new SecurityConfigObjectModelFactory();
UsersObjectModelFactory uomf = new UsersObjectModelFactory();
InputStreamReader xmlReader = new InputStreamReader(loginConfigURL.openStream());
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
unmarshaller.mapFactoryToNamespace(uomf, "http://www.jboss.org/j2ee/schemas/XMLLoginModule");