code: protected static void loadConfig(final Properties config,
                                         final File f) {
          InputStreamReader r = null;
  
          try {
              final FileInputStream in = new FileInputStream(f);
              r = new InputStreamReader(in, "UTF-8");
  
              config.load(r);
          } catch (Exception e) {
              e.printStackTrace();
          } finally {
              if (r != null) {
                  try {
                      r.close();
                  } catch (Exception e) {
                      e.printStackTrace();
                  } // end of catch
              } // end of if
          } // end of finally
      }
docs: Loads configuration from |file|.
  
  @param config Configuration container
  @param f File to be loaded