{
XmlSerializer serializer = new MXSerializer();
serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " " );
serializer.setProperty( "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", "\n" );
serializer.setOutput( stream, lifecycleConfiguration.getModelEncoding() );
serializer.startDocument( lifecycleConfiguration.getModelEncoding(), null );
writeLifecycleConfiguration( lifecycleConfiguration, "lifecycles", serializer );
serializer.endDocument();
} //-- void write( OutputStream, LifecycleConfiguration )
/**