Groovy/Java code for Just Another Lackey ANalyser