Object[] params = new Object[] {new Integer(Registry.X509_ENCODING_ID),
Object[] params = new Object[] {Integer.valueOf(Registry.X509_ENCODING_ID),
  private DHPublicKey decodeDHPublicKey(DHPublicKeySpec spec)      throws InvalidKeySpecException  {    BigInteger p = spec.getP();    BigInteger g = spec.getG();    BigInteger y = spec.getY();    Object[] params = new Object[] {new Integer(Registry.X509_ENCODING_ID),                                    null, p, g, y};    Object obj = invokeConstructor("gnu.javax.crypto.key.dh.GnuDHPublicKey",                                   params);    return (DHPublicKey) obj;  }