return publishedConfigSets.get(name);
}
@Override
public PublishedConfigSet getOrCreatePublishedConfigSet(String name) {
PublishedConfigSet set = publishedConfigSets.get(name);
if (set == null) {
validator.validate(name);
synchronized (publishedConfigSets) {
// synchronized double check to ensure that there is never an overridden
// config set created
set = publishedConfigSets.get(name);
if (set == null) {
set = new PublishedConfigSet();
publishedConfigSets.put(name, set);
}
}
}
return set;