{
if ( !filteredOutputDirectory.exists() )
{
filteredOutputDirectory.mkdirs();
}
XmlStreamReader xmlStreamReader = null;
try
{
// so we get encoding from the file itself
xmlStreamReader = ReaderFactory.newXmlReader( xmlPath );
String encoding = xmlStreamReader.getEncoding();
File resultFile = new File( filteredOutputDirectory, "changes.xml" );
Date now = new Date();
SimpleDateFormat simpleDateFormat =
new SimpleDateFormat( publishDateFormat, new Locale( publishDateLocale ) );
Properties additionalProperties = new Properties();