} catch (Exception e) {
LOGGER.warning("Invalid security mode " + ruleValue + " acceptable values are "
+ Arrays.asList(CatalogMode.values()));
}
} else {
DataAccessRule rule = parseDataAccessRule(ruleKey, ruleValue);
if (rule != null) {
if (result.contains(rule))
LOGGER.warning("Rule " + ruleKey + "." + ruleValue
+ " overwrites another rule on the same path");
result.add(rule);
}
}
}
// make sure the two basic rules if the set is empty
if(result.size() == 0) {
result.add(new DataAccessRule(DataAccessRule.READ_ALL));
result.add(new DataAccessRule(DataAccessRule.WRITE_ALL));
}
rules = result;
}