In a large pan heat the oil before frying the cloves, peppercorns, cassia bark and curry leaves for about a minute. Add the ginger and onion and cook until the onion is translucent.
Place the plain flour into a bowl with a little salt and freshly ground black pepper, to taste. Toss the chicken pieces in the flour until they are completly covered.
Place the chicken pieces into the pan. Sauté the chicken briefly, browning it on all sides. Stir in the carrots, silverskin onions, beans and spices and cook for about one minute. Add the seasoned flour and cook for a further 2-3 minutes. Stir in the coconut milk and simmer for another five minutes before removing the pan from the heat. Leave to cool.
Spoon the filling into a pie dish until the filling almost reaches the top. In the centre of the dish place a pie funnel or egg cup. This will hold the pastry up as it cooks.
On a chopping board or clean surface, roll out the pastry so that it is slightly larger than the circumference of the pie dish. Use a little water or milk to wet the edges of the pastry and place it over the pie dish. Pinch the edges firmly to seal the pastry onto the dish.
For the curst, use a mortar and pestle to crush the coriander, cumin, fennel and sesame seeds together.
Brush the top of the pie with the beaten egg before sprinkling the spice crust over the top. Place the pie into the oven and cook for 10-15 minutes or until the pastry is golden-brown and crisp at the edges. Serve immediately.