if (children.item(i) instanceof Element) {
Element childElement = (Element) children.item(i);
String name = childElement.getNodeName();
if (CONTAINER.equals(name)) {
MutablePicoContainer childContainer = parentContainer.getPico().makeChildContainer();
NanoContainer childNanoContainer = new DefaultNanoContainer(parentContainer.getComponentClassLoader(), childContainer);
registerComponentsAndChildContainers(childNanoContainer, childElement);
} else if (COMPONENT_IMPLEMENTATION.equals(name)
|| COMPONENT.equals(name)) {
registerComponentImplementation(parentContainer, childElement);
} else if (COMPONENT_INSTANCE.equals(name)) {