@Override
  public boolean allowElementsFromNamespace(final String namespace, final XmlTag context) {
    final TypeDescriptor type = getType(context);

    if (type instanceof ComplexTypeDescriptor typeDescriptor) {
      return typeDescriptor.canContainTag("a", namespace, context) ||
             typeDescriptor.getNsDescriptor().hasSubstitutions() ||
             XmlUtil.nsFromTemplateFramework(namespace);
    }
    return false;
  }
@Override
  public boolean allowElementsFromNamespace(final String namespace, final XmlTag context)