private String getGeodeHome() {

    String geodeHome = System.getenv(GEODE_HOME);

    logger.info(GEODE_HOME + ":" + geodeHome);
    // Check for empty variable. if empty, then log message and exit HTTP server
    // startup
    if (StringUtils.isBlank(geodeHome)) {
      geodeHome = System.getProperty(GeodeGlossary.GEMFIRE_PREFIX + "home");
      logger.info("Reading gemfire.home System Property -> {}", geodeHome);
      if (StringUtils.isBlank(geodeHome)) {
        logger.info("GEODE_HOME environment variable not set; HTTP service will not start.");
        geodeHome = null;
      }
    }
    return geodeHome;
  }
this method will try to find the named war files in the following order: 1. if GEODE_HOME is
defined, it will look under tools/Extensions, tools/Pulse and lib folder (in this order) to
find either the name-version.war or the name.war file 2. If GEODE_HOME is not defined, it will
try to find either the name-version.war/name.war (in that order) on the classpath

@param warFilePrefix : the prefix of the war file, e.g. geode-web, geode-pulse, or
       geode-web-api
geode-core/src/main/java/org/apache/geode/management/internal/AgentUtil.java