private void readPolicies(PolicyCollection coll, String subdir, PolicyReader reader) {
List<String> fileNames = getXMLFileNames(subdir);
for (String fileName : fileNames) {
try {
AbstractPolicy policy = reader.readPolicy(new File(fileName));
if (!coll.addPolicy(policy)) {
if (logger.isLoggable(Level.WARNING))
logger.log(Level.WARNING, "tried to load the same "
+ "policy multiple times: " + fileName);
} else {
logger.fine("Read policy(Set) " + policy.getId() + " from "
+ fileName.toString());
}
} catch (ParsingException e) {
if (logger.isLoggable(Level.WARNING))