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