The comment does not mention the dependency on the template being set before use.  Mention that, or make the class load the template itself.