docs: public Environment getEnvironment()
      {
          Environment env = ((BaseApplication)this.getApplication()).getEnvironment();
          if (env == null)
              env = Environment.getEnvironment(null);   // Never
          return env;
      }