To keep the ham moist, baste it regularly with the pan juices and cover it loosely with foil during most of the cooking time. Adding a liquid like ginger ale or water to the roasting pan also helps to keep the ham from drying out.