code: public static <T> String marshal(Marshaller self, T jaxbElement) throws JAXBException {
          StringWriter sw = new StringWriter();
          self.marshal(jaxbElement, sw);
          return sw.toString();
      }
docs: Marshall an object to a xml {@code String}.
  
  @param self a Marshaller which can marshall the type of the given object
  @param jaxbElement object to marshall to a {@code String}
  @return {@code String} representing the object as xml