There's a lot more that needs to go on here.  I'm leaving this as so that it's easier to debug the fact that the annotation is in more than 1 place.  When that happens, the [JAX-RS 1.1 Annotation Inheritance](https://jsr311.java.net/nonav/releases/1.1/spec/spec3.html#x3-330003.6) rules kick in, and that is actually a coding error since you won't really know which class is the correctly annotated one.  This code here will give a hint of that.

But the longer term thing is to print out in gory detail which class is actually providing the annotations, needs to be hooked into the JAX-RS framework while this code just scans the code for annotations.