private boolean isInTransaction(){
  return transaction != null;
}

private boolean isInTransaction ( ) { return transaction != null ; }
checks if the connection is being used on behalf the a transaction .
