To make the filling, peel, halve, and core the apples. Combine with the remaining filling ingredients, except walnuts, in a large, nonreactive saucepan. Place over low heat and cook, stirring occasionally, until reduced to a thick, jamlike consistency, 15 to 20 minutes. Pour the filling out into a heatproof glass or stainless-steel