Fix for running with Groovy 2.2