presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/MetastoreUtil.java/MetastoreUtil/getProtectMode
class MetastoreUtil:    private static ProtectMode getProtectMode(Map<String, String> parameters)
    {
        if (!parameters.containsKey(ProtectMode.PARAMETER_NAME)) {
            return new ProtectMode();
        }
        else {
            return getProtectModeFromString(parameters.get(ProtectMode.PARAMETER_NAME));
        }
    }