public static Map<String, Object> propsToMap(Properties properties) {
        return castToStringObjectMap(properties);
    }
Convert a properties to map. All keys in properties must be string type. Otherwise, a ConfigException is thrown.
@param properties to be converted
@return a map including all elements in properties
clients/src/main/java/org/apache/kafka/common/utils/Utils.java