public void updateXml()
{
try
{
MessageExchange messageExchange = messageExchangeModelItem.getMessageExchange();
DefaultXmlDocument defaultXmlDocument = getDocument();
if( messageExchange != null && messageExchange.getOperation() != null )
defaultXmlDocument.setTypeSystem( messageExchange.getOperation().getInterface().getDefinitionContext()
.getInterfaceDefinition().getSchemaTypeSystem() );
defaultXmlDocument.setXml( messageExchange == null ? null : messageExchange.getResponseContentAsXml() );
}
catch( Exception e )
{
e.printStackTrace();
}