code: public static Properties getPropertiesFromClasspath(String fileName)
        throws PropertiesFileNotFoundException {
  
      Properties props = new Properties();
      try {
        InputStream is = ClassLoader.getSystemResourceAsStream(fileName);
        if (is == null) { // try this instead
          is = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName);
          logger.debug("loaded properties file with Thread.currentThread()");
        }
        props.load(is);
      } catch (Exception e) {
        throw new PropertiesFileNotFoundException(
            "ERROR LOADING PROPERTIES FROM CLASSPATH >" + fileName + "< !!!", e);
      }
      return props;
    }
docs: Loads a Properties file from the classpath matching the given file name
  
  @param fileName
  @return The Properties file
  @throws PropertiesFileNotFoundException if the Properties file could not be loaded from the
  classpath