code: public static Properties loadProperties(final File file) {
          checkNotNull("file", file);
          checkValidFile(file);
          final Properties props = new Properties();
          try (final InputStream inStream = new FileInputStream(file)) {
              props.load(inStream);
          } catch (final IOException ex) {
              throw new RuntimeException(ex);
          }
          return props;
      }
docs: Load properties from a file.
  
  @param file
  Properties file - Cannot be <code>null</code> and must be a valid file.
  
  @return Properties.