Template Model demo for java