OMElement firstChild =
(OMElement) inMessage.getEnvelope().getBody().getFirstOMChild();
inMessage.getEnvelope().build();
StringWriter writer = new StringWriter();
firstChild.build();
firstChild.serialize(writer);
writer.flush();
String value = writer.toString();
if (value != null) {
InputStream in = new ByteArrayInputStream(value.getBytes());
GroovyClassLoader loader = new GroovyClassLoader();