A Chain of Responsibility demo in Java