private void commitHA(){
  try {
    prepare2Phase();
    commit2Phase();
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
}

private void commitHA ( ) { try { prepare2Phase ( ) ; commit2Phase ( ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
ha mode commit ( 2 - phase commit ) .
