Do not use inner classes for contexts. There is a bug in Groovy which causes problems with inner classes and closures.