private static void loadProviders(String dir, String vendor)
private static void loadProviders(String baseUrl, String vendor)
  private static void loadProviders(String dir, String vendor)  {    if (dir == null || vendor == null)      return;    String separator = System.getProperty("file.separator");    String secfilestr = (dir +			 separator + "lib" +			 separator + "security" +			 separator + vendor + ".security");    try      {	FileInputStream fin = new FileInputStream(secfilestr);	secprops = new Properties();	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 ("Error loading security provider " + name	                          + ": " + exception);	    i++;	  }      }    catch (FileNotFoundException ignored)      {        // Actually we probibly shouldn't ignore these, once the security	// properties file is actually installed somewhere.      }    catch (IOException ignored)      {      }  }