}
  public static IKeyPairGenerator getInstance(String name)  {    if (name == null)      {        return null;      }    name = name.trim();    IKeyPairGenerator result = null;    if (name.equalsIgnoreCase(Registry.DSA_KPG)        || name.equalsIgnoreCase(Registry.DSS_KPG))      {        result = new DSSKeyPairGenerator();      }    else if (name.equalsIgnoreCase(Registry.RSA_KPG))      {        result = new RSAKeyPairGenerator();      }    else if (name.equalsIgnoreCase(Registry.DH_KPG))      {        result = makeInstance ("gnu.javax.crypto.key.dh.GnuDHKeyPairGenerator");      }    else if (name.equalsIgnoreCase(Registry.SRP_KPG))      {        result = makeInstance ("gnu.javax.crypto.key.srp6.SRPKeyPairGenerator");      }    return result;  }