void acquireLocksIfNeeded() throws CommandProcessorException {
    if (requiresLock()) {
      acquireLocks();
    }
  }
Handles transaction related duties of the Driver.
ql/src/java/org/apache/hadoop/hive/ql/DriverTxnHandler.java