providers.addElement(Class.forName(name).newInstance());
ClassLoader sys = ClassLoader.getSystemClassLoader(); providers.addElement(Class.forName(name, true, sys).newInstance());
  private static boolean loadProviders(String baseUrl, String vendor)  {    if (baseUrl == null || vendor == null)      return false;    boolean result = true;        String secfilestr = baseUrl + "/security/" + vendor + ".security";    try      {            InputStream fin = new URL(secfilestr).openStream();            secprops.load(fin);            int i = 1;            String name;	while ((name = secprops.getProperty("security.provider." + i)) != null)	  {                Exception exception = null;	    try	      {                    providers.addElement(Class.forName(name).newInstance());	      }	    catch (ClassNotFoundException x)	      {                    exception = x;	      }	    catch (InstantiationException x)	      {                    exception = x;	      }	    catch (IllegalAccessException x)	      {                    exception = x;                }                if (exception != null)	      {		System.err.println ("WARNING: Error loading security provider "                                + name + ": " + exception);		result = false;	      }                i++;            }        }    catch (IOException ignored)      {	result = false;      }    return result;    }