No XML element decl in the XML registry matching the namespace and name
===

**Some code in the rootelement class:**

        @XmlElementRefs({
          @XmlElementRef(name = "footnoteLink", namespace = "http://www.xbrl.org/2003/linkbase", type = JAXBElement.class, required = false)
        })

 It appears following description

 >     No XML element decl in the XML registry matching the namespace 'http://www.xbrl.org/2003/linkbase' and name 'footnoteLink'.


 The reason is, that the ObjectFactory from this rootelement class has no decl found.



**But I found in another object factory (xlink object factory) the footnoteLink.**

        private final static QName _FootnoteLink_QNAME = new QName("http://www.xbrl.org/2003/linkbase", "footnoteLink");


**The point is the xlink declaration:**

       <complexType>
          <sequence>
            <element ref="link:schemaRef" minOccurs="1" maxOccurs="unbounded" />
            <choice minOccurs="0" maxOccurs="unbounded">
              <element ref="xbrli:unit"/>
              <element ref="link:footnoteLink"/>
            </choice>
          </sequence>
       </complexType>

The solution is, that I need to point the @xmlElementRef "footnoteLink" to the link object factory. Is this possible?