code: public void init(Object env, Map<String,Object> properties, Object applet)
      {
          m_resources = null;
          super.init(env, properties, applet);
          if (m_env == null)
          {
              if (env != null)
                  m_env = (Environment)env;
              else
                  m_env = this.getEnvironment();
              this.setProperties(Utility.putAllIfNew(this.getProperties(), m_env.getProperties()));   // Start with environment properties
          }
          m_env.addApplication(this);
          
          m_databaseCollection = new DatabaseCollection(this);
      }
docs: Initializes the BaseApplication.
  Usually you pass the object that wants to use this sesssion.
  For example, the applet or BaseApplication.
  @param env The Environment.
  @param strURL The application parameters as a URL.
  @param args The application parameters as an initial arg list.
  @param applet The application parameters coming from an applet.