title: How programmatically resolve apache velocity variable?
body: <p>Velocity documentation <a href="http://velocity.apache.org/engine/releases/velocity-1.7/user-guide.html#variables" rel="nofollow">tells</a> that to resolve a variablev a <code>#set</code> derective or POJO with corresponding property should be used. Is there a way to provide a custome resolver? E.g. when <code>$client</code> appears in template, resolver <code>go</code> to database, retrieve <code>Client</code> entity, get <code>name</code> field and fill <code>$client</code> place holder. Does velocity template engine support such extensions?</p>