XMLEncoderDelegate delegate = (XMLEncoderDelegate) rawResult;
XMLSerializer xmls = new XMLSerializer(output, new OutputFormat());
xmls.setNamespaces(true);
try {
delegate.encode(xmls);
} catch (IOException e) {
throw e;
} catch (Exception e) {
throw new WPSException("An error occurred while encoding "
+ "the results of the process", e);