{
  public static IKeyPairCodec getInstance(String name)  {    if (name == null)      {        return null;      }    name = name.trim();    IKeyPairCodec result = null;    if (name.equalsIgnoreCase(Registry.DSA_KPG)        || name.equals(Registry.DSS_KPG))      {        result = new DSSKeyPairRawCodec();      }    else if (name.equalsIgnoreCase(Registry.RSA_KPG))      {        result = new RSAKeyPairRawCodec();      }    else if (name.equalsIgnoreCase(Registry.DH_KPG))      {        result = makeInstance ("gnu.javax.crypto.key.dh.DHKeyPairRawCodec");      }    else if (name.equalsIgnoreCase(Registry.SRP_KPG))      {        result = makeInstance ("gnu.javax.crypto.key.srp6.SRPKeyPairRawCodec");      }    return result;  }