code: @Override
      public Session newSession(String id) {
          long created = System.currentTimeMillis();
          Session session = sessionCache.newSession(id, created, (defaultMaxIdleSecs > 0 ? defaultMaxIdleSecs * 1000L : -1));
          try {
              sessionCache.put(id, session);
              sessionsCreatedStats.increment();
  
              for (SessionListener listener : sessionListeners) {
                  listener.sessionCreated(session);
              }
  
              return session;
          } catch (Exception e) {
              log.warn("Failed to create a new session", e);
              return null;
          }
      }
docs: Create an entirely new Session.
  
  @param id identity of session to create
  @return the new session object