updated groovy syntax to take advantage of language argument now being passed to wrap callback