Designing the interceptor chain and context