This should work against the CompositeIndex of a deployment. Take a look at ApplicationExceptionAnnotationProcessor for an example.