private static File getGemFireInstallation() {
    URL url = GemFireVersion.getJarURL();
    if (url == null) {
      throw new IllegalStateException(
          "Could not find gemfire.jar.");
    }

    File gemfireJar = new File(url.getPath());
    File lib = gemfireJar.getParentFile();

    return lib.getParentFile();
  }
Returns the location of the GemFire product installation. This is determined by finding the
location of the gemfire jar and working backwards.
geode-core/src/main/java/org/apache/geode/admin/internal/ManagedEntityConfigImpl.java