code: private Properties loadProperties() {
  
          props = new Properties();
  
          try {
              InputStream in = Version.class.getResourceAsStream("version.properties");
              props.load(in);
              in.close();
          } catch (Exception e) {
              throw new Error("Missing version.properties");
          }
  
          return props;
      }
docs: Load the version properties from a resource.