Decorator Pattern in Java