handleBeforeCommit(onePhase, refsToAdd, refsToRemove, tx);
if (onePhase) { handleBeforeCommit1PC(refsToAdd, refsToRemove, tx); } else { handleBeforeCommit2PC(refsToRemove, tx); }
      public void beforeCommit(boolean onePhase) throws Exception      {         handleBeforeCommit(onePhase, refsToAdd, refsToRemove, tx);      }