title: JAXB: Dealing the with Root Element
body: <p>I have different <code>Response</code> classes for different Rest calls. But they all deal with the same <code>Entity</code>.
  Initially I was getting for not telling JaxB about Entity class from Response class. It was resolved by using <code>@XmlSeeAlso({Entity.class})</code>. Now I am trying to fix the root element name in <code>Response</code> 
  class.<br/><strong>Issue1:</strong></p>
  
  <pre><code>@XmlRootElement(name="?")
  @XmlSeeAlso({Entity.class})
  public class FindAllResponse 
      extends ListResponse&lt;Entity&gt; 
  {
      /**
       * serial version uid
       */
      private static final long serialVersionUID = xxx;
  }
  </code></pre>
  
  <p>Expected response is<br/>
  <code>&lt;Response&gt;
    &lt;Entities&gt;
     &lt;Entity&gt;&lt;/Entity&gt;
    &lt;/Entities&gt;
   &lt;Response&gt;</code> 
  <br/>How would I add <code>&lt;Response&gt;&lt;Entities&gt;</code> root to above response class.
  <br/>
  <strong>Issue2:</strong></p>
  
  <pre><code>@XmlRootElement(name="?")
  @XmlSeeAlso({Entity.class})
  public class FindEntityResponse 
      extends Response&lt;JobType&gt; 
  {
  
  
      @JsonUnwrapped
      public Entity getValue() {
          return super.getValue();
      }
  
  }
  </code></pre>
  
  <p>In this case expected response does not have any root element. Expected Response xml is just start with <code>&lt;Entity&gt;&lt;/Entity&gt;</code>.<br/>
  Tried using <code>@XmlTransient</code> with <code>@XmlRootElement</code> for Issue 1 but no luck.</p>