code: public static Properties getProperties(URL url) throws IOException
      {
          Properties properties = new Properties();
  
          InputStream inputStream = url.openStream();
          try
          {
              properties.load(inputStream);
          }
          finally
          {
              inputStream.close();
          }
  
          return properties;
      }
docs: Load values from a URL.
  
  @param url
  the URL containing default values
  @return a new properties instance loaded with values from the given URL
  @throws IOException
  if there is an error while reading the given URL