try to document WHY you're doing sth. not WHAT your doing - everybody will be able to figure out that you get a template from the factory, when you call factory.getTemplate
seems this code does not need comments

same for velocity context two lines below