String classname = p[i].getProperty ("CertificateFactory." + type); if (classname != null) return getInstance (classname, type, p[i]);
try { return getInstance(type, p[i]); } catch (CertificateException ignored) { }
  public static final CertificateFactory getInstance(String type) throws CertificateException  {    Provider[] p = Security.getProviders ();    for (int i = 0; i < p.length; i++)      {	String classname = p[i].getProperty ("CertificateFactory." + type);	if (classname != null)	  return getInstance (classname, type, p[i]);      }    throw new CertificateException(type);  }