An implmentation of the GoF Chain of Responsibility pattern