code: public <TYPE> String write(@NotNull final TYPE obj, @NotNull final JAXBContext jaxbContext) throws MarshalObjectException {
  
          Contract.requireArgNotNull("obj", obj);
          Contract.requireArgNotNull("jaxbContext", jaxbContext);
  
          final StringWriter writer = new StringWriter();
          write(obj, writer, jaxbContext);
          return writer.toString();
      }
docs: Marshals the object as XML to a string.
  
  @param obj
  Object to marshal.
  @param jaxbContext
  Context to use.
  
  @return XML String.
  
  @throws MarshalObjectException
  Error writing the object.
  
  @param <TYPE>
  Type of the object.