public String serialize(String name, Configuration configuration) {
      try {
         ByteArrayOutputStream os = new ByteArrayOutputStream();
         serialize(os, name, configuration);
         return os.toString("UTF-8");
      } catch (Exception e) {
         throw new CacheConfigurationException(e);
      }
   }
public String serialize ( String name , Configuration configuration ) { try { ByteArrayOutputStream os = new ByteArrayOutputStream ( ) ; serialize ( os , name , configuration ) ; return os . toString ( "UTF-8" ) ; } catch ( Exception e ) { throw new CacheConfigurationException ( e ) ; } }
Serializes a single configuration to a String
@param name the name of the configuration
@param configuration the {@link Configuration}
@return the XML representation of the specified configuration