{
outputDir.mkdirs();
}
final File doc = FileUtils.createTempFile( "pdf", ".xml", outputDir );
final DocumentXpp3Writer xpp3 = new DocumentXpp3Writer();
Writer w = null;
try
{
w = WriterFactory.newXmlWriter( doc );
xpp3.write( w, docModel );
if ( getLog().isDebugEnabled() )
{
getLog().debug( "Generated a default document model: " + doc.getAbsolutePath() );
}