@Override public void writeResultToStream(IActionResultSave result, OutputStream out) throws Exception { createMarshaller(new Class[] {result.getClass()}).marshal(result, out); }
@Override public String writeResultToString(IActionResultSave result) throws Exception { StringWriter writer = new StringWriter(); createMarshaller(new Class[] {result.getClass()}).marshal(result, writer); return writer.toString(); }