docs: public void releaseConnection()
      {
          if (this.con == null)
          {
              return;
          }
          if(isInLocalTransaction())
          {
              log.error("Release connection: connection is in local transaction, missing 'localCommit' or" +
                      " 'localRollback' call - try to rollback the connection");
              localRollback();
          }
          else
          {
              this.connectionFactory.releaseConnection(this.jcd, this.con);
              this.con = null;
              this.batchCon = null;
          }
      }