docs: DataSource getDataSource() {
          if (com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINER)) {
              LoggingUtil.SESSION_LOGGER_WAS.entering(methodClassName, methodNames[GET_DATA_SOURCE]);
          }
  
          if (dataSource != null)
              return dataSource;
  
          try {
  
              //            Properties p = new Properties();
              //
              //            p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
              //            InitialContext ic = new javax.naming.InitialContext(p);
              beginDBContext(); // PK06395/d321615
              //            dataSource = (DataSource) ic.lookup(_smc.getJNDIDataSourceName());
  
              ResourceConfig rc = this.getDatabaseStoreService().getResourceConfigFactory().createResourceConfig("javax.sql.DataSource");
              rc.setResAuthType(ResourceConfig.AUTH_CONTAINER);
              rc.setSharingScope(ResourceConfig.SHARING_SCOPE_SHAREABLE);
              rc.setIsolationLevel(Connection.TRANSACTION_READ_COMMITTED);
              //            ResRef.APPLICATION, // resAuth - org.eclipse.jst.j2ee.common.ResAuthTypeBase.APPLICATION=
              //            ResRef.SHAREABLE, // resSharingScope - org.eclipse.jst.j2ee.common.ResSharingScopeType.SHAREABLE
              //            ResRef.TRANSACTION_READ_COMMITTED); // resIsolationLevel - com.ibm.ejs.models.base.extensions.commonext.IsolationLevelKind.TRANSACTION_READ_COMMITTED
              dataSource = (DataSource) this.getDatabaseStoreService().getDataSourceFactory().createResource(rc);
  
              //            dataSource = (DataSource)SessionMgrComponentImpl.getDataSourceFactory().createResource(null); // direct JNDI lookup
              endDBContext(); // PK06395/d321615
              return dataSource;
  
          } catch (Exception e) {
              com.ibm.ws.ffdc.FFDCFilter.processException(e, "com.ibm.ws.session.store.db.DatabaseHashMap.getDataSource", "558", this);
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[GET_DATA_SOURCE], "DatabaseHashMap.dataSrcErr");
              LoggingUtil.SESSION_LOGGER_WAS.logp(Level.SEVERE, methodClassName, methodNames[GET_DATA_SOURCE], "CommonMessage.exception", e);
              dataSource = null;
          }
          return null;
      }