private String marshal(Marshaller marshaller,Object o) throws IOException {
  Writer writer=new StringWriter();
  marshaller.marshal(o,new StreamResult(writer));
  String xml=writer.toString();
  LOGGER.debug("\n" + xml);
  return xml;
}

private String marshal ( Marshaller marshaller , Object o ) throws IOException { Writer writer = new StringWriter ( ) ; marshaller . marshal ( o , new StreamResult ( writer ) ) ; String xml = writer . toString ( ) ; LOGGER . debug ( "\n" + xml ) ; return xml ; }
marshalls an object to an xml , returned as a string instance .
