add: a writer for model to convert it into java source file
todo: tests