code: protected boolean checkEnvironment() {
          home = getHomeDir().getAbsoluteFile();
          home.mkdirs();
          LOGGER.info(getApplicationName()+" home directory: "+home);
  
          // check that home exists (as mkdirs could have failed silently), otherwise throw a meaningful error
          if (!home.exists()) {
              context.setAttribute(APP,new NoHomeDirError(home));
              return false;
          }
  
          return true;
      }
docs: Performs pre start-up environment check.
  
  @return
  false if a check fails. Webapp will fail to boot in this case.