java. Functional approach to invocations, fixed #135.