Add play template for java