/** {@inheritDoc} */
protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
throws UnmarshallingException {
Advice advice = (Advice) parentSAMLObject;
if (childSAMLObject instanceof Assertion) {
advice.getAssertions().add((Assertion) childSAMLObject);
} else if (childSAMLObject instanceof AssertionIDReference) {
advice.getAssertionIDReferences().add((AssertionIDReference) childSAMLObject);
} else {
advice.getUnknownXMLObjects().add(childSAMLObject);
}
}