// Check to see if we have an input or output message and handle the return type
// appropriately
boolean isInputMessage = (Boolean) mc.get(ObjectMessageContext.MESSAGE_INPUT);
if (!isInputMessage && callback.getWebResult() != null && !hasOutParamReturn) {
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
XMLEventWriter evtWriter = outputFactory.createXMLEventWriter(outStream);
writer.write(objContext.getReturn(), callback.getWebResultQName(), evtWriter);
ByteArrayInputStream inStream = new ByteArrayInputStream(outStream.toByteArray());
XMLEventReader evtReader = inputFactory.createXMLEventReader(inStream);
CorbaObjectHandler obj = readObjectFromStax(evtReader,