module = (LoginModule) Class.forName (entry.getLoginModuleName()).newInstance();
ClassLoader cl = Thread.currentThread().getContextClassLoader(); Class c = Class.forName(entry.getLoginModuleName(), true, cl); module = (LoginModule) c.newInstance();
  private LoginModule lookupModule (AppConfigurationEntry entry,                                    Subject subject, Map sharedState)    throws LoginException  {    LoginModule module = null;    Exception cause = null;    try      {        module = (LoginModule) Class.forName (entry.getLoginModuleName()).newInstance();      }    catch (ClassNotFoundException cnfe)      {        cause = cnfe;      }    catch (ClassCastException cce)      {        cause = cce;      }    catch (IllegalAccessException iae)      {        cause = iae;      }    catch (InstantiationException ie)      {        cause = ie;      }    if (cause != null)      {        LoginException le = new LoginException ("could not load module "                                                + entry.getLoginModuleName());        le.initCause (cause);        throw le;      }    module.initialize (subject, cbHandler, sharedState, entry.getOptions());    return module;  }