docs: protected void insertSession(BackedSession d2) {
          if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
              LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames[INSERT_SESSION]);
          }
          d2.update = new StringBuffer();
          Connection conn = null;
          PreparedStatement ps = null;
          boolean psClose = false;
  
          conn = getConnection(false);
  
          if (conn == null) {
              return;
          }
  
          try {
  
              d2.update.append(insNoProp);
              if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
                  LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, methodNames[INSERT_SESSION], "updating Primary Row - NO properties");
              }
  
              ps = conn.prepareStatement(d2.update.toString());
              String id = d2.getId();
  
              ps.setString(1, id);
              ps.setString(2, id);
              ps.setString(3, d2.getAppName());
  
              listenerFlagUpdate(d2);
  
              ps.setShort(4, d2.listenerFlag);
              long tmpCreationTime = d2.getCreationTime();
              d2.setLastWriteLastAccessTime(tmpCreationTime);
              setPSLong(ps, 5, tmpCreationTime);
              setPSLong(ps, 6, tmpCreationTime);
  
              ps.setInt(7, d2.getMaxInactiveInterval());
              ps.setString(8, d2.getUserName());
  
              if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
                  LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, methodNames[INSERT_SESSION], "before upd " + d2.update.toString() + " for sess " + id);
              }
  
              ps.executeUpdate();
              d2.needToInsert = false;
              if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
                  LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, methodNames[INSERT_SESSION], "after upd " + d2.update.toString() + " for sess " + id);
              }
  
              ps.close();
              psClose = true;
              removeFromRecentlyInvalidatedList(d2.getId());
          } catch (SQLException se) {
              //            if (isStaleConnectionException(se)) {
              //                com.ibm.ws.ffdc.FFDCFilter.processException(se, "com.ibm.ws.session.store.db.DatabaseHashMap.insertSession", "1794", d2);
              //                LoggingUtil.SESSION_LOGGER_WAS.logp(Level.WARNING, methodClassName, methodNames[INSERT_SESSION], "StaleConnectionException");
              //            } else if (isDuplicateKeyException(se)) {
              //                com.ibm.ws.ffdc.FFDCFilter.processException(se, "com.ibm.ws.session.store.db.DatabaseHashMap.insertSession", "1797", d2);
              //                if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled()&&LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) {
              //                    LoggingUtil.SESSION_LOGGER_WAS.logp(Level.FINE, methodClassName, methodNames[INSERT_SESSION], "Duplicate Key Exception");
              //                }
              //                d2.duplicateIdDetected = true;
              //            } else {
              com.ibm.ws.ffdc.FFDCFilter.processException(se, "com.ibm.ws.session.store.db.DatabaseHashMap.insertSession", "1803", d2);
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[INSERT_SESSION], "DatabaseHashMap.ejbCreateError");
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[INSERT_SESSION], "CommonMessage.object", d2.toString());
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[INSERT_SESSION], "CommonMessage.miscData", "  Update SQL " + d2.update);
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[INSERT_SESSION], "CommonMessage.exception", se);
              //            }
          } catch (Exception ee) {
              com.ibm.ws.ffdc.FFDCFilter.processException(ee, "com.ibm.ws.session.store.db.DatabaseHashMap.insertSession", "1810", d2);
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[INSERT_SESSION], "DatabaseHashMap.ejbCreateError");
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[INSERT_SESSION], "CommonMessage.exception", ee);
          } finally {
              if (!psClose && ps != null) {
                  closeStatement(ps);
              }
              closeConnection(conn); //findbugs 106329
          }
  
          d2.update = null;
          d2.userWriteHit = false;
          d2.maxInactWriteHit = false;
          d2.listenCntHit = false;
      }