final List<Resource> res = resources.getByType(type);
if (entry.processor.supportsType(type)) {
LOGGER.info("Executing processor {} for type {}", entry.name, type);
final List<Resource> results = new ArrayList<Resource>();
// TODO: SourceMerger should not be required here
final ResourceGroup group = new ResourceGroup(res, new SourceMerger(
GlobalOptions.isSourceOnce(task)));
group.apply(vfs, entry.processor, entry.options);
results.addAll(group.getResources());
resources.replace(res, results);
}
}
}
}