+ " job " + jobId
+ " " + Thread.currentThread().getName());
setJobState(jobId, JobMetadata.RUNNING);
DendriteGraph srcGraph = metaGraph.getGraph(srcGraphId);
DendriteGraph dstGraph = metaGraph.getGraph(dstGraphId);
try {
copyIndices(srcGraph, dstGraph);
copyGraph(srcGraph, dstGraph);
// Update the branch to point the new graph.
MetaGraphTx tx = metaGraph.newTransaction();
try {
BranchMetadata branchMetadata = tx.getBranch(branchId);
branchMetadata.setGraph(tx.getGraph(dstGraph.getId()));
tx.commit();
} catch (Throwable t) {
tx.rollback();
throw t;
}