private void init(InputStream stream) {
        if (stream == null) {
            return;
        }
        Properties props = new Properties();

        try {
            props.load(stream);
        } catch (IOException e) {
            LOG.warn("GeoTopicConfig.properties not found in class path");
        } finally {
            if (stream != null) {
                try {
                    stream.close();
                } catch (IOException ioe) {
                    LOG.error("Unable to close stream: {}", ioe.getMessage());
                }
            }
        }
        setGazetteerRestEndpoint(props.getProperty("gazetter.rest.api", "http://localhost:8765"));
    }
Initialize configurations from property files

@param stream InputStream for GeoTopicConfig.properties
tika-parsers/tika-parsers-ml/tika-parser-nlp-module/src/main/java/org/apache/tika/parser/geo/topic/GeoParserConfig.java