Functional programming with Apache Commons