adapt to Xtend 2.4, added examples