public static Properties readPropertiesFile(String path) throws IOException {
        Properties props = new Properties();
        try (InputStream propStream = Files.newInputStream(Paths.get(path))) {
            props.load(propStream);
        }
        return props;
    }
Reads a Java Properties object from a file.

@param path          The file to read from.

@throws java.nio.file.NoSuchFileException    If the file is not found.
@throws IOException                          If there is another exception while reading.
metadata/src/main/java/org/apache/kafka/metadata/properties/PropertiesUtils.java