code: public static Properties getPropertiesFromCache(final String propertiesPath)
              throws PropertiesException {
  
          Properties properties;
          properties = propertiesCache.get(propertiesPath);
          if (properties != null) {
              return properties;
          }
          String propertiesFilePath = getPropertiesFilePath(propertiesPath);
          if (propertiesFilePath == null) {
              throw new PropertiesException(String.format("Loading '%s' properties failed.",
                      propertiesPath));
          }
          properties = propertiesCache.get(propertiesFilePath);
          if (properties != null) {
              return properties;
          }
          properties = getProperties(propertiesFilePath);
          propertiesCache.put(propertiesFilePath, properties);
          return properties;
      }
docs: Returns properties by given path.<br>
  If this properties already been put in the cache, we will returns this
  properties from cache.<br>
  <p>
  e.g:<br>
  "testFolder/propertiesName" or "testFolder/propertiesName.properties"
  </p>
  
  @param propertiesPath
  the properties path.
  @return properties by given path.
  @throws PropertiesException