code: private Properties loadProperties() {
  
      props = new Properties();
  
      try {
        InputStream in = VersionProperties.class.getResourceAsStream("/META-INF/version.properties");
        props.load(in);
        in.close();
      }
      catch (Exception e) {
        // failed to load version properties. go with defaults
        props.put("vendor", "Mobicents");
        props.put("version", "UN.DEFINED");
      }
  
      return props;
    }
docs: Load the version properties from a resource.