FlagList flags = guard.getFlags();
for (String key : profiles.getKeys(root)) {
path = root + "." + key;
boolean isSafe = profiles.getBoolean(path + ".safe");
int priority = profiles.getInt(path + ".priority");
flags.addFlag(FlagType.parse(profiles.getString(path + ".type")),
FlagInfo.newInstance(key, priority, isSafe));
}
}
@Override