title: CXF JAXRS | Complex response types are not present in the generated wadl
body: <p>We use cxf 2.5.2 along with spring for exposing and consuming restful services.
  For distributing the service interface classes, we started using wadl2java goal (which generates interface classes based on the given wadl file)</p>
  
  <p>The generated wadl doesnt contain the proper response type, because of which i guess, the generated interfaces all have 'Response' as the return type.</p>
  
  <p>Ex. if the restful get method returns 'List' , the generated wadl contains the following segment only:</p>
  
  <p><code>&lt;response&gt;&lt;representation mediaType="application/json"/&gt;&lt;/response&gt;</code></p>
  
  <p>and the corresponding interface generated from this wadl file contains the return type as 'Response'</p>
  
  <p>Can someone suggest what needs to be done to prevent the actual response type from getting lost?
  Are any annotations (like ElementClass ? how to use it ?) or providers required?</p>
  
  <p>Current code:</p>
  
  <pre><code>@GET
  @Path("/itemsForCategory")
  @Produces("application/json")
  @Description("getItemsForCategory")
  public List&lt;Item&gt; getItemsForCategory(@QueryParam("category")String category) {
  </code></pre>