}
}
if (branchRequests.isEmpty()) return;
// Now execute the branch ...
Graph.Batch branchBatch = store.batch(new BatchRequestBuilder(branchRequests));
try {
branchBatch.execute();
} catch (org.jboss.dna.graph.property.PathNotFoundException e) {
throw new InvalidStateException(e.getLocalizedMessage(), e);
} catch (RuntimeException e) {
throw new RepositorySourceException(e.getLocalizedMessage(), e);
}
// Still have non-branch related requests that we haven't executed ...
this.requests = nonBranchRequests;
this.requestBuilder = new BatchRequestBuilder(this.requests);
this.operations = store.batch(this.requestBuilder);
// Remove all the cached, changed or deleted items that were just saved ...
node.clearChanges();
node.unload();