Adding getTemplate method to document