I developed a fileNameGenerator which returns always the same filename. So, you always update the same file with the FileWritingMessageHandler.
This doesn't work that nice on Windows OS. I expect to rename the filename.file.writing file to filename.file but this doesn't work. Or it works very random.
After some research I concluded that the renameTo method of the java.util.File class isn't allowed by windows to rename to an existing filename.