protected static Properties loadGemFireProperties(final URL url) {
    if (url == null) {
      return new Properties();
    }
    Properties properties = new Properties();

    try (FileReader reader = new FileReader(new File(url.toURI()))) {
      properties.load(reader);
    } catch (IOException | URISyntaxException handled) {
      // not in the file system, try the classpath
      loadGemFirePropertiesFromClassPath(properties);
    }

    return properties;
  }
Loads the GemFire properties at the specified URL.

@param url the URL to the gemfire.properties to load.
@return a Properties instance populated with the gemfire.properties.
@see java.net.URL
geode-core/src/main/java/org/apache/geode/distributed/AbstractLauncher.java