ASTs removed and metaClass is now used due to problem with grails plugins