}
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
throws UnmarshallingException {
AgreementMethod am = (AgreementMethod) parentXMLObject;
if (childXMLObject instanceof KANonce) {
am.setKANonce((KANonce) childXMLObject);
} else if (childXMLObject instanceof OriginatorKeyInfo) {
am.setOriginatorKeyInfo((OriginatorKeyInfo) childXMLObject);
} else if (childXMLObject instanceof RecipientKeyInfo) {
am.setRecipientKeyInfo((RecipientKeyInfo) childXMLObject);
} else {
am.getUnknownXMLObjects().add(childXMLObject);
}
}