{
ContextualPatch patch = null;
for (File f : files)
{
patch = ContextualPatch.create(Files.toString(f, Charset.defaultCharset()), new ContextProvider(sourceMap));
List<PatchReport> errors = patch.patch(true);
boolean success = true;
for (PatchReport rep : errors)
{
if (!rep.getStatus().isSuccess()) success = false;