@Override
    public Handler decorateHandler(Handler delegate, Class<?> sqlObjectType, Method method) {
        Handler handler = delegate;

        List<Class<? extends Annotation>> annotationTypes = Stream.of(method, sqlObjectType)
                .map(AnnotatedElement::getAnnotations)
                .flatMap(Arrays::stream)
                .map(Annotation::annotationType)
                .filter(type -> type.isAnnotationPresent(SqlMethodDecoratingAnnotation.class))
                .collect(toList());

        SqlObjectAnnotationHelper.findAnnotation(DecoratorOrder.class, method, sqlObjectType)
                .ifPresent(order -> annotationTypes.sort(createDecoratorComparator(order).reversed()));

        List<HandlerDecorator> decorators = annotationTypes.stream()
                .map(type -> type.getAnnotation(SqlMethodDecoratingAnnotation.class))
                .map(a -> JdbiClassUtils.checkedCreateInstance(a.value()))
                .collect(toList());

        for (HandlerDecorator decorator : decorators) {
            handler = decorator.decorateHandler(handler, sqlObjectType, method);
        }

        return handler;
    }
Applies decorations to method handlers, according to any {@link SqlMethodDecoratingAnnotation decorating annotations}
present on the method. If multiple decorating annotations are present, the order of application can be controlled
using the {@link DecoratorOrder} annotation.
<p>
This decorator is registered out of the box and supports the deprecated {@link SqlMethodDecoratingAnnotation} annotations.
</p>
sqlobject/src/main/java/org/jdbi/v3/sqlobject/SqlMethodAnnotatedHandlerDecorator.java