code: @Override
      public String marshal(final XBELDocument d) throws JAXBException,
              IOException {
          final Marshaller marshaller = createNewMarshaller();
  
          StringWriter sw = new StringWriter();
          marshaller.marshal(d, sw);
          sw.close();
          return sw.toString();
      }
docs: {@inheritDoc}