try {
MessageElement msgElem = context.getCurElement();
if ( msgElem != null ) {
MessageContext messageContext = context.getMessageContext();
Boolean currentElement = (Boolean) messageContext.getProperty(DESERIALIZE_CURRENT_ELEMENT);
if (currentElement != null && currentElement.booleanValue()) {
value = msgElem.getAsDocument();
messageContext.setProperty(DESERIALIZE_CURRENT_ELEMENT, Boolean.FALSE);
return;
}
List children = msgElem.getChildren();
if ( children != null ) {
msgElem = (MessageElement) children.get(0);
if ( msgElem != null )
value = msgElem.getAsDocument();
}
}
}
catch( Exception exp ) {
log.error(Messages.getMessage("exception00"), exp);
throw new SAXException( exp );
}