Return to heat and cook until slightly thickened, stirring constantly with a wooden spatula. (Do not use a whisk.) The foam should disappear, and it should be bubbling lightly from the bottom. Remove from heat, add the softened gelatin and stir to dissolve. When the mixture has cooled slightly, stir in the liqueur.