Make the method really search for the @Path annotation in the ancestor h...

...ierarchy. Without this fix it is not possible to register proxied beans created by Spring because the annotation is in the super class