Preheat oven to 350 degrees F.
Saute onions with butter until the onions are translucent. Add flour and cream. Temper yolks by beating them with a small amount of the heated onion, flour cream mixture. Add yolks to mixture. Grind half the corn using a hand held stick blender. Add all the corn to the rest of the mixture and heat until thickened. Add spices, to taste.
Whip egg whites and fold them into the mixture. Pour into a baking dish and bake the mixture in the oven until the pudding temperature is 160 degrees F on an instant-read thermometer.
Professional Recipe: This recipe was provided by a chef, restaurant or culinary professional and makes a large quantity. The Food Network Kitchens chefs have not tested this recipe in the proportions indicated and therefore cannot make any representation as to the results.