title: Jaxb2-annotate-plugin does not work with episodes
body: <p>I am trying to enforce enum validation for my generated JAXB classes, but I am having some issues with getting them bound.</p>
  
  <p>The basic XSD setup is:</p>
  
  <pre><code>-enumsXSD
  -2 other XSDs that import this XSD
  </code></pre>
  
  <p>To provent duplication of my classes I am using episodes, but it looks like this does not play nice when adding annotions in the enumsXSD </p>
  
  <pre><code>com.sun.istack.SAXParseException2: compiler was unable to honor this annox:annotateEnumValueMethod customization. It is attached to a wrong place, or its inconsistent with other bindings.
  
  [ERROR] Error while generating code.Location [ file:somewhere/generic.episode{64,99}].
  com.sun.istack.SAXParseException2: (the above customization is attached to the following location in the schema) 
  </code></pre>
  
  <p>The code:</p>
  
  <pre><code>&lt;plugins&gt;
        &lt;plugin&gt;
          &lt;groupId&gt;org.jvnet.jaxb2.maven2&lt;/groupId&gt;
          &lt;artifactId&gt;maven-jaxb2-plugin&lt;/artifactId&gt;
          &lt;version&gt;0.13.3&lt;/version&gt;
          &lt;configuration&gt;
            &lt;extension&gt;true&lt;/extension&gt;
            &lt;args&gt;
              &lt;arg&gt;-Xannotate&lt;/arg&gt;
            &lt;/args&gt;
            &lt;plugins&gt;
              &lt;plugin&gt;
                &lt;groupId&gt;org.jvnet.jaxb2_commons&lt;/groupId&gt;
                &lt;artifactId&gt;jaxb2-basics-annotate&lt;/artifactId&gt;
                &lt;version&gt;1.0.4&lt;/version&gt;
              &lt;/plugin&gt;
            &lt;/plugins&gt;
          &lt;/configuration&gt;
          &lt;executions&gt;
            &lt;!--GENERIC ENUMS --&gt;
            &lt;execution&gt;
              &lt;id&gt;ENUMS&lt;/id&gt;
              &lt;goals&gt;
                &lt;goal&gt;generate&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;extension&gt;true&lt;/extension&gt;
              &lt;generatePackage&gt;com.foo.generic.enums&lt;/generatePackage&gt;
                &lt;generateDirectory&gt;${project.build.directory}/generated-sources/xjc1/generic&lt;/generateDirectory&gt;
                &lt;!-- Define the directory where we should find the XSD files --&gt;
                &lt;schemaDirectory&gt;
                  src/main/resources/dtd/generic
                &lt;/schemaDirectory&gt;
                &lt;schemaIncludes&gt;
                  &lt;source&gt;enums.xsd&lt;/source&gt;
                &lt;/schemaIncludes&gt;
                &lt;episodeFile&gt;
                  ${project.build.directory}/generated-sources/xjc1/generic/META-INF/generic.episode
                &lt;/episodeFile&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
            &lt;execution&gt;
              &lt;id&gt;A_XSD&lt;/id&gt;
              &lt;goals&gt;
                &lt;goal&gt;generate&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;
                &lt;extension&gt;true&lt;/extension&gt;
                &lt;bindingDirectory&gt;${project.build.directory}/generated-sources/xjc1/generic/META-INF&lt;/bindingDirectory&gt;
                &lt;bindingIncludes&gt;
                  &lt;include&gt;generic.episode&lt;/include&gt;
                &lt;/bindingIncludes&gt;
  
                &lt;!-- Set the package of the generated code --&gt;
                &lt;generatePackage&gt;com.foo.something&lt;/generatePackage&gt;
                &lt;generateDirectory&gt;${project.build.directory}/generated-sources/xjc1/a_something&lt;/generateDirectory&gt;
  
                &lt;!-- Define the directory where we should find the XSD files --&gt;
                &lt;schemaDirectory&gt;
                  src/main/resources/dtd/someplace/a/
                &lt;/schemaDirectory&gt;
                &lt;schemaIncludes&gt;
                  &lt;source&gt;*.xsd&lt;/source&gt;
                &lt;/schemaIncludes&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
       &lt;/executions&gt;
     &lt;plugin&gt;
  &lt;/plugins&gt;
  </code></pre>
  
  <p>And in the enums XSD</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;xs:schema elementFormDefault="qualified" id="commonEnums"
             targetNamespace="http://foo.com/xsd/commons/enum"
             xmlns:xs="http://www.w3.org/2001/XMLSchema"
             xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
             jaxb:version="2.1"
             xmlns:annox="http://annox.dev.java.net"
             jaxb:extensionBindingPrefixes="annox"&gt;
  &lt;xs:simpleType name="bulletinCategory"&gt;
      &lt;xs:annotation&gt;
        &lt;xs:appinfo&gt;
          &lt;annox:annotateEnumValueMethod&gt;@java.lang.Deprecated&lt;/annox:annotateEnumValueMethod&gt;
        &lt;/xs:appinfo&gt;
      &lt;/xs:annotation&gt;
      &lt;xs:restriction base="xs:string"&gt;
        &lt;xs:enumeration value="valueA" /&gt;
        &lt;xs:enumeration value="valueB" /&gt;
        &lt;xs:enumeration value="valueC" /&gt;
      &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt;
  &lt;/xs&gt;
  </code></pre>
  
  <p>Ideally speaking the @deprecated should be <code>@XmlJavaTypeAdapter(FooAdapter.class)</code> but I thought let's start small.</p>