Updated template.
Implemented new Java template