try {
targetFile = new File(sourceFolder, toTargetFileName.transform(file.getName()));
final InputStream targetFileStream = new FileInputStream(targetFile);
LOG.debug("comparing with: {}", targetFile.getName());
try {
compare(new FileInputStream(file), targetFileStream, new ResourcePostProcessor() {
public void process(final Reader reader, final Writer writer)
throws IOException {
// ResourceType doesn't matter here
processor.process(Resource.create("file:" + file.getPath(), ResourceType.CSS), reader, writer);
}