Added valueOrTemplateVariable method to ItemController