Implemented in Groovy and Java.