GEOS-5533: fixed critical bug in FreemarkerTemplateResource
Merge pull request #93 from svzdvd/2.2.x-GEOS5533-restfix-2

GEOS-5533: fixed critical bug in FreemarkerTemplateResource