File dir = loader.findOrCreateDirectory("csw");
for (Name name : descriptorByType.keySet()) {
String typeName = name.getLocalPart();
File f = new File(dir, typeName + ".properties");
PropertyFileWatcher watcher = new PropertyFileWatcher(f);
watchers.put(typeName, watcher);
if (!f.exists()) {
IOUtils.copy(getClass().getResourceAsStream(typeName + ".default.properties"),f);
}
addMapping (typeName, CatalogStoreMapping.parse(new HashMap<String, String>((Map) watcher.getProperties())));
}
}