Combine the apples, butter, lemon juice, wine, cinnamon and nutmeg in a saucepan. Cover and cook over low heat until the apples are tender, about 20 minutes.
While the apples cook, make the sugar syrup. Dissolve the sugar and 3 Tbsp of the water in a small saucepan. Cook over high heat, stirring constantly, until the mixture turns a light golden color and attains a syrupy consistency. Turn off the heat. SLOWLY AND CAREFULLY stir in the remaining 5 Tbsp of water. (See note!!!) Pour into a loaf pan that measures about 7 by 3 by 2 inches.
Preheat the oven to 350 degrees.
When the apples are tender, remove the lid from the pan and continue cooking the apples over moderately high heat until most of the liquid disappears. Pass the apples through a strainer. In a separate bowl combine the eggs and the sugar with a whisk. When thoroughly combined, whisk in the apple puree. Slowly and carefully spoon the mixture into the loaf pan. Place a larger pan filled with hot water onto your oven's middle rack, and then place the loaf pan in the pan of water. Bake until the custard is fairly firm to the touch in the center. Start checking after 1 hour.
Remove the loaf pan from the oven and allow to cool. Thoroughly chill in the refrigerator.
When ready to serve, slide a knife down the four sides of the loaf pan to release the custard from the pan. Invert onto a serving dish, allowing the liquid syrup to flow over the flan and into the dish. Cut 1/2-inch slices and place two slices on each dessert plate. Garnish with your favorite berries and spoon some of the syrup over the berries and flan.