code: public static <T> String marshal(final T data, final XmlAdapter<?, ?>[] adapters, final Class<?>... classesToBeBound) {
          if (data == null) {
              return null;
          }
          try {
              final JAXBContext ctx = JAXBContext.newInstance(classesToBeBound);
              return marshal(ctx, data, adapters);
          } catch (final JAXBException ex) {
              throw new RuntimeException(ERROR_MARSHALLING_TEST_DATA, ex);
          }
      }
docs: Marshals the given data. A <code>null</code> data argument returns <code>null</code>.
  
  @param data
  Data to serialize or <code>null</code>.
  @param adapters
  Adapters to associate with the marshaller or <code>null</code> .
  @param classesToBeBound
  List of java classes to be recognized by the {@link JAXBContext} - Cannot be <code>null</code>.
  
  @return XML data or <code>null</code>.
  
  @param <T>
  Type of the data.