private static List<InterceptorMethodInvocation> buildInterceptorMethodInvocations(List<InterceptorClassMetadata<?>> interceptorMetadata,
InterceptionContext ctx, InterceptionType interceptionType) {
List<InterceptorMethodInvocation> interceptorInvocations = new ArrayList<InterceptorMethodInvocation>(interceptorMetadata.size());
for (InterceptorClassMetadata<?> metadata : interceptorMetadata) {
Object interceptorInstance = ctx.getInterceptorInstance(metadata);
InterceptorInvocation invocation = metadata.getInterceptorInvocation(interceptorInstance, interceptionType);
interceptorInvocations.addAll(invocation.getInterceptorMethodInvocations());
}
return interceptorInvocations;
}