void (XmlTag rootTag, Processor processor) { final XmlTag[] compGroup = rootTag.findSubTags(myName); for (XmlTag tag : compGroup) { if (!tag.isPhysical()) continue; //skip included tags final XmlTag[] components = tag.findSubTags("component"); for (XmlTag component : components) { final XmlTag impl = component.findFirstSubTag("implementation-class"); final XmlTag intf = component.findFirstSubTag("interface-class"); if (!processor.process(this, component, impl != null ? impl.getValue() : null, intf != null ? intf.getValue() : null)) { return; } } } }