Added set-template for java