Updated sample for ItemProcessor API.