title: JAXB bindings of complex type to new classname
body: <p>I'm trying to map the following to a new class name via the maven-jaxb2-plugin.</p>
  
  <p>I have this element that exists in two XSD's in the project (different namespaces).</p>
  
  <p>I want to map this instance to a different classname so that it compiles.</p>
  
  <pre><code>&lt;xs:complexType name="ResponseCommonData"&gt;
      &lt;xs:sequence&gt;
          &lt;xs:element name="RequestID" type="xs:string"/&gt;
          &lt;xs:element name="BusinessError" form="qualified" minOccurs="0" maxOccurs="unbounded"&gt;
              &lt;xs:complexType&gt;
                  &lt;xs:complexContent&gt;
                      &lt;xs:extension base="BusinessErrorCommonData"/&gt;
                  &lt;/xs:complexContent&gt;
              &lt;/xs:complexType&gt;
          &lt;/xs:element&gt;
      &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  
  &lt;xs:complexType name="BusinessCommonData"&gt;
      &lt;xs:sequence&gt;
          &lt;xs:element name="Code" type="xs:string" form="unqualified" minOccurs="0"/&gt;
      &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>The bindings.xjb I have is...</p>
  
  <pre><code>&lt;jaxb:bindings schemaLocation="CFRV2.0.0.xsd" node="/xs:schema"&gt;
         &lt;jaxb:bindings node="xs:complexType[@name='ResponseCommonData']"&gt;
                   &lt;jaxb:property  name="CFRResponseCommonData" /&gt;
         &lt;/jaxb:bindings&gt;
         &lt;jaxb:bindings node="xs:complexType[@name='BusinessCommonData']"&gt;
                   &lt;jaxb:property  name="CFRBusinessCommonData" /&gt;
         &lt;/jaxb:bindings&gt;
  &lt;/jaxb:bindings&gt;
  </code></pre>
  
  <p>The error I get is this...</p>
  
  <pre><code>org.xml.sax.SAXParseException: A class/interface with the same name
  "com.ResponseCommonData" is already in use. 
  Use a class customization to resolve this conflict.
  </code></pre>
  
  <p>If I remove the inner element BusinessError from ResponseCommonData then the JAXB will proceed on, but giving me a similar message about another complex type class.</p>