I am trying to use this method without a closure
def copyAndReplaceText(source, dest, targetText, replaceText){ dest.write(source.text.replaceAll(target
To help other bug-hunters. I had this error because the function didn't exist.
I had a spelling error.