The chain of responsibility pattern