public class ReferenceListUnmarshaller extends AbstractXMLEncryptionUnmarshaller {
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
throws UnmarshallingException {
ReferenceList rl = (ReferenceList) parentXMLObject;
if (childXMLObject instanceof DataReference) {
rl.getReferences().add((DataReference) childXMLObject);
} else if (childXMLObject instanceof KeyReference) {
rl.getReferences().add((KeyReference) childXMLObject);
} else {
super.processChildElement(parentXMLObject, childXMLObject);
}
}