} else {
return null;
}
}
ContainerEntry ce = (ContainerEntry) ie;
ChildNodeEntries container = ce.getContainer();
ChildNodeEntry existing = container.remove(name);
if (existing == null) {
return null;
}
if (container.getCount() == 0) {
index[hash] = null;
} else if (container.getCount() == 1) {
// inline single remaining entry
ChildNodeEntry remaining = container.getEntries(0, 1).next();
index[hash] = new NodeEntry(remaining.getName(), remaining.getId());
} else {
ce.setDirty(container);
}
count--;