public static URL getPropertyFileURL(final String propFileLocation) {
    File propFile = new File(propFileLocation);

    // first, try the current directory...
    if (propFile.exists()) {
      propFile = IOUtils.tryGetCanonicalFileElseGetAbsoluteFile(propFile);

      try {
        return propFile.toURI().toURL();
      } catch (java.net.MalformedURLException ignore) {
      }
    }

    // next, try the user's home directory...
    if (propFileLocation != null && propFileLocation.length() > 0) {
      propFile = new File(System.getProperty("user.home"), propFileLocation);

      if (propFile.exists()) {
        propFile = IOUtils.tryGetCanonicalFileElseGetAbsoluteFile(propFile);

        try {
          return propFile.toURI().toURL();
        } catch (java.net.MalformedURLException ignore) {
        }
      }
    }

    // finally, try the classpath...
    return ClassPathLoader.getLatest().getResource(AgentConfigImpl.class, propFileLocation);
  }
Gets an <code>URL</code> for the property file, if one can be found, that the create method
would use to determine the systemName and product home.
<p>
The file will be searched for, in order, in the following locations:
<ol>
<li>the current directory
<li>the home directory
<li>the class path
</ol>
Only the first file found will be used.

@return a <code>URL</code> that names the property file; otherwise Null if no property file was
        found.
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentConfigImpl.java