code: public void destroy()
      {
          removeAllListeners();
          if (connectionManager != null)
          {
              if(connectionManager.isInLocalTransaction())
              {
                  connectionManager.localRollback();
              }
              connectionManager.releaseConnection();
          }
          this.setClosed(true);
  
          this.descriptorRepository = null;
          this.pbKey = null;
          this.pbf = null;
          this.connectionManager = null;
          this.dbAccess = null;
          this.objectCache = null;
          this.sequenceManager = null;
          this.sqlGenerator = null;
          this.statementManager = null;
      }
docs: Release all resources used by this
  class - CAUTION: No further operations can be
  done with this instance after calling this method.