title: using RESTlet, XStream annotations seem to have no effect
body: <p>Using @XStreamOmitField in my POJO seems to have no effect whatsoever. the annotated field still gets exposed in the xml or json representation.</p>
  
  <pre><code>@XStreamAlias("Pojo")
  @Entity
  public class Pojo {
      private String name;
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Long key;
  
      @XStreamOmitField
      private String hidden;
  
      public Pojo(String name, String hidden) {
          this.name = name;
          this.hidden = hidden;
      }
  }
  </code></pre>
  
  <p>and in the ServerResource</p>
  
  <pre><code>@Get
  public Pojo test() {
      Pojo pj= new Pojo("hansi","hinter");
      return pj;
  }
  </code></pre>
  
  <p>gets me</p>
  
  <pre><code>&lt;com.myComp.ORMTest.Pojo&gt;
    &lt;name&gt;hansi&lt;/name&gt;
    &lt;hidden&gt;hinter&lt;/hidden&gt;
  &lt;/com.myComp.ORMTest.Pojo&gt;
  </code></pre>
  
  <p>Any ideas why the annotations are ignored?</p>