change validator from java to xtend
add creation of additional constructor