In a lidded saucepan, simmer the prunes in the sherry until tender
Lift the prunes our of the saucepan using a slotted spoon and set aside to cool
Cut the prunes carefully down one side and remove stones (ignore this step if you bought pitted fruit)
Add the damson jam to the liquor and set on a low heat to melt, whisking and straining at the end, if necessary, to get a smooth glaze
For the pastry
Using a food processor, pulse together the flour, ground almonds and caster sugar with the cold cubes of butter. When the mixture looks uniformly crumbly, add the egg yolk and sprinkle a tablespoon of cold water evenly over the top and continue to pulse until the mixture comes together into a ball. Add another tablespoon of water if necessary
Cool the ball of pastry, in a zip-lock bag, in the fridge for half an hour to an hour
Roll out the pastry and line a 18-20cm/7-8" diameter flan dish