docs: protected boolean isPresent(String id) {
          if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
              LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames[IS_PRESENT]);
          }
          if (isPresentInRecentlyInvalidatedList(id))
              return true;
  
          PreparedStatement s = null;
          ResultSet rs = null;
          Connection con = null;
          boolean sessionIdInUse = false;
  
          con = getConnection(false);
  
          if (con == null) {
              return false;
          }
  
          try {
  
              if (usingDB2 || usingDerby) {
                  s = con.prepareStatement(getOneNoUpdate);
              } else {
                  s = con.prepareStatement(getOneNoUpdateNonDB2);
              }
  
              s.setString(1, id);
              s.setString(2, id);
  
              rs = s.executeQuery();
  
              if (rs.next()) {
                  if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINER)) {
                      LoggingUtil.SESSION_LOGGER_WAS.exiting(methodClassName, methodNames[IS_PRESENT], "Found sessionid in Database");
                  }
                  sessionIdInUse = true;
              }
              return sessionIdInUse;
          } catch (SQLException se) {
              //            if (isStaleConnectionException(se)) {
              //                com.ibm.ws.ffdc.FFDCFilter.processException(se, "com.ibm.ws.session.store.db.DatabaseHashMap.isPresent", "1709", this);
              //                if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled()&&LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
              //                    LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, methodNames[IS_PRESENT], "StaleConnectionException");
              //                }
              //            } else {
              com.ibm.ws.ffdc.FFDCFilter.processException(se, "com.ibm.ws.session.store.db.DatabaseHashMap.isPresent", "1715", this);
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[IS_PRESENT], "DatabaseHashMap.selectNoUpdateError");
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[IS_PRESENT], "CommonMessage.sessionid", id);
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[IS_PRESENT], "CommonMessage.exception", se);
              //            }
          } catch (Exception e) {
              com.ibm.ws.ffdc.FFDCFilter.processException(e, "com.ibm.ws.session.store.db.DatabaseHashMap.isPresent", "1720", this);
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[IS_PRESENT], "DatabaseHashMap.selectNoUpdateError");
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[IS_PRESENT], "CommonMessage.sessionid", id);
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[IS_PRESENT], "CommonMessage.exception", e);
          } finally {
              if (rs != null)
                  closeResultSet(rs);
              if (s != null)
                  closeStatement(s);
  
              closeConnection(con);
          }
  
          return false;
      }