{
File tempFile = File.createTempFile( "project-temp-", ".xml", projectFile.getParentFile() );
// save once to make sure it can be saved
FileOutputStream tempOut = new FileOutputStream( tempFile );
projectDocument.save( tempOut, options );
tempOut.close();
if( getSettings().getBoolean( UISettings.LINEBREAK ) )
{
normalizeLineBreak( projectFile, tempFile );