Adding java onefile templates