Edit the use ofextend() to work with xtend's latest version