private String xml(final ServiceErrorRestRep error) throws JAXBException, PropertyException {
  final JAXBContext context=JAXBContext.newInstance(ServiceErrorRestRep.class);
  final StringWriter out=new StringWriter();
  final Marshaller marshaller=context.createMarshaller();
  marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT,Boolean.TRUE);
  marshaller.marshal(error,out);
  String xml=out.toString();
  return xml;
}

private String xml ( final ServiceErrorRestRep error ) throws JAXBException , PropertyException { final JAXBContext context = JAXBContext . newInstance ( ServiceErrorRestRep . class ) ; final StringWriter out = new StringWriter ( ) ; final Marshaller marshaller = context . createMarshaller ( ) ; marshaller . setProperty ( Marshaller . JAXB_FORMATTED_OUTPUT , Boolean . TRUE ) ; marshaller . marshal ( error , out ) ; String xml = out . toString ( ) ; return xml ; }
marshals the given serviceerror instance into xml
