added an implementation of PathTemplateContext