See https://github.com/aledsage/brooklyn/commit/9a46bf2029f8d0a3094f14ff1dc669307208fc8c etc