presto-session-property-managers/src/main/java/io/prestosql/plugin/session/SessionMatchSpec.java/SessionMatchSpec/getProperties
class SessionMatchSpec:        private static Map<String, String> getProperties(Optional<String> names, Optional<String> values)
        {
            if (!names.isPresent()) {
                return ImmutableMap.of();
            }

            checkArgument(values.isPresent(), "names are present, but values are not");
            List<String> sessionPropertyNames = Splitter.on(",").splitToList(names.get());
            List<String> sessionPropertyValues = Splitter.on(",").splitToList(values.get());
            checkArgument(sessionPropertyNames.size() == sessionPropertyValues.size(),
                    "The number of property names and values should be the same");

            Map<String, String> sessionProperties = new HashMap<>();
            for (int i = 0; i < sessionPropertyNames.size(); i++) {
                sessionProperties.put(sessionPropertyNames.get(i), sessionPropertyValues.get(i));
            }

            return sessionProperties;
        }