for (ChildReference ref : indexes.getChildReferences(system)) {
CachedNode provider = system.getNode(ref);
Name providerName = provider.getName(system);
for (ChildReference indexRef : provider.getChildReferences(system)) {
CachedNode indexDefn = system.getNode(indexRef);
IndexDefinition defn = readIndexDefinition(indexDefn, providerName);
if (providerNames.contains(defn.getProviderName())) {
defns.add(defn);
} else {
// There is no provider by this name, so mark it as not enabled ...
defn = RepositoryIndexDefinition.createFrom(defn, false);
}