rewrited version working on Kepler with Maven export and Xtend template

Signed-off-by: Kirill Zotkin <kirillzotkin@gmail.com>