public class LifetimeUnmarshaller extends AbstractWSTrustObjectUnmarshaller {
/** {@inheritDoc} */
protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
throws UnmarshallingException {
Lifetime lifetime = (Lifetime) parentXMLObject;
if (childXMLObject instanceof Created) {
lifetime.setCreated((Created) childXMLObject);
} else if (childXMLObject instanceof Expires) {
lifetime.setExpires((Expires) childXMLObject);
} else {
super.processChildElement(parentXMLObject, childXMLObject);
}
}