JAL-4130 Workaround the j2s issue with final variables inside lambdas