Esterification of pentaerythritol by carboxylic acids