public void read(AlgReader reader) {
        for (Setting setting : map.values()) {
            if (setting instanceof AlgFileSetting)
                continue;

            String value = reader.getValue("Settings", setting.getName());
            boolean locked = true;
            if (value.startsWith(AlgReader.undefined)) {
                setting.setLocked(false);
                continue;
            }
            if (value.startsWith("[")) {
                locked = false;
                value = value.substring(1, value.length() - 1).trim();
            }
            if (value.startsWith(AlgReader.empty)) {
                locked = false;
            }
            setting.setString(value);
            setting.setLocked(locked);
        }
    }