code: @Override
      public String toXML(final Document d) throws JAXBException, IOException {
          XBELDocument xdoc = new DocumentConverter().convert(d);
          return converter.marshal(xdoc);
      }
docs: {@inheritDoc}