throw new IllegalArgumentException("Collection already contains a key with a keyID for the passed in ring.");
throw new IllegalArgumentException("Collection does not contain a key with a keyID for the passed in ring.");
    public static PGPSecretKeyRingCollection removeSecretKeyRing(        PGPSecretKeyRingCollection ringCollection,        PGPSecretKeyRing           secretKeyRing)    {        Long        key = new Long(secretKeyRing.getPublicKey().getKeyID());                if (!ringCollection.secretRings.containsKey(key))        {            throw new IllegalArgumentException("Collection already contains a key with a keyID for the passed in ring.");        }                Map     newSecretRings = new HashMap(ringCollection.secretRings);        List    newOrder = new ArrayList(ringCollection.order);                 newSecretRings.remove(key);                for (int i = 0; i < newOrder.size(); i++)        {            Long    r = (Long)newOrder.get(i);                        if (r.longValue() == key.longValue())            {                newOrder.remove(i);                break;            }        }                return new PGPSecretKeyRingCollection(newSecretRings, newOrder);    }