title: Required @QueryParam in JAX-RS using @Required Annotation does not work in ContainerRequestFilter
body: <p>I have the same problem and tried Zero3's solution (<a href="https://stackoverflow.com/questions/13968261/required-queryparam-in-jax-rs-and-what-to-do-in-their-absence/13979349">Required @QueryParam in JAX-RS (and what to do in their absence)</a>), but in my case <code>parameter.isAnnotationPresent(Required.class)</code> always return <code>false</code>.</p>
  
  <p>This is my Required annotation:</p>
  
  <pre><code>import java.lang.annotation.Documented;
  import java.lang.annotation.ElementType;
  import java.lang.annotation.Retention;
  import java.lang.annotation.RetentionPolicy;
  import java.lang.annotation.Target;
  
  @Target(ElementType.PARAMETER)
  @Retention(RetentionPolicy.RUNTIME)
  @Documented
  public @interface Required {
      // This is just a marker annotation, so nothing in here.
  }
  </code></pre>
  
  <p>I also tried it with a <code>BeanParam</code> annotation and modified the filter accordingly, but same result - always get <code>null</code> for <code>isAnnotionPresen</code>.</p>
  
  <p>I'm using WildFly 9 (RESTeasy) which automatically registers the request filter.</p>
  
  <p>My REST resource looks like this:</p>
  
  <pre><code>@GET
  @Path("/{type}/{id}")
  public Response getAllByTypeAndId(@Required @BeanParam RequiredQueryParams requiredQueryParams,
                                    @Required @QueryParam("mandant") String mandant,
                                    @PathParam("type") String type,
                                    @PathParam("id") Long id) {
  ...doSomething...
  }
  </code></pre>
  
  <p>Running the debugger shows for parameter.declaredAnnotations two entries in the HashMap for <code>BeanParam</code>:</p>
  
  <pre><code>0 interface my.annotations.Required -&gt; @my.annotations.Required()
  1 interface javax.ws.rs.BeanParam -&gt; @javax.ws.rs.BeanParam()
  </code></pre>
  
  <p>and for <code>QueryParam</code>:</p>
  
  <pre><code>0 interface my.annotations.Required -&gt; @my.annotations.Required()
  1 interface javax.ws.rs.QueryParam -&gt; @javax.ws.rs.QueryParam(value=mandant)
  </code></pre>
  
  <p>Any hints welcome - Thank you!</p>