final HandlerMethods handlerMethods = new HandlerMethods();
ReflectionUtils.doWithMethods(beanType, new ReflectionUtils.MethodCallback() {
@Override
public void doWith(final Method method) throws IllegalArgumentException, IllegalAccessException {
final Before before = AnnotationUtils.findAnnotation(method, Before.class);
if (before != null) {
if (AnnotationUtils.findAnnotation(method, Attribute.class) != null
|| AnnotationUtils.findAnnotation(method, Uri.class) != null) {
throw new RuntimeException(String.format(
"Cannot combine @Before, @Attribute and @Uri on a single method. Method: %s",