code: public static void initServlet(javax.servlet.Servlet servlet, BasicServlet.SERVLET_TYPE servletType)
      {
          Map<String,Object> properties = BaseHttpTask.getInitialProperties(servlet, servletType);
  
          // Since this is called only once, make sure the logger is the servlet's logger.
          Utility.setLogger(Logger.getLogger(DBConstants.ROOT_PACKAGE.substring(0, DBConstants.ROOT_PACKAGE.length() - 1)));
  
          Utility.getLogger().info("ServletTask init()");
  
          Environment env = Environment.getEnvironment(properties);  // Make sure environment is inited
          if (env.getDefaultApplication() == null)        // First time?
          {
              env.setDefaultApplication(new MainApplication(null, properties, null));   // This app handles user info reads, etc.
          }
          gApplicationProperties.put(servletType, properties);
      }
docs: init method.