class Version {

  public static String getPropertiesVersion(String propertiesPath, String key) {
    try {
      Configuration config = new Configurations().properties(propertiesPath);
      String version = config.getString(key);
      if (version.contains("project.version")) {
        // For whatever reason, resource filtering didn't work.
        return UNKNOWN_VERSION;
      }
      return version;
    } catch (Exception e) {
      return UNKNOWN_VERSION;
    }
  }

  private  Version();

}