FileOutputStream fos = new FileOutputStream( outputFile );
writer = new OutputStreamWriter( fos, "UTF-8" );
AppassemblerModelStaxWriter staxWriter = new AppassemblerModelStaxWriter();
staxWriter.write( writer, mergedDaemon );
}
catch ( IOException e )
{
throw new DaemonGeneratorException( "Error while writing output file: " + request.getOutputDirectory(), e );
}