code: public String serialize(final Object obj, final Collection<Converter<?>> converters) {
          final DelegatingConverter delegatingConverter = new DelegatingConverter();
  
          if (converters != null) {
              for (final Converter<?> converter : converters) {
                  delegatingConverter.addConverter(converter);
              }
          }
  
          delegatingConverter.addConverter(new ConfigurationItemConverter());
          delegatingConverter.addConverter(getResourceConverter());
          delegatingConverter.addConverter(new StandardTypeConverter(_configuration, delegatingConverter));
  
          delegatingConverter.initializeAll(_injectionManager);
  
          return delegatingConverter.toString(obj);
      }
docs: Serializes a Java object to a String representation.
  
  @param obj
  the object to serialize
  @param converters
  an optional collection of custom converter classes
  @return a String representation of the Java object