boolean (final XmlTag element, final XmlElementDescriptor elementDescriptor, final String elementNamespace, final String namespace) { return !(elementDescriptor instanceof XmlElementDescriptorAwareAboutChildren) || elementNamespace == null || elementNamespace.equals(namespace) || ((XmlElementDescriptorAwareAboutChildren)elementDescriptor).allowElementsFromNamespace(namespace, element.getParentTag()); }