@prakhargarg5678 In your email template, you can execute the a rule and get the values you want to use in your email template.
#set($spctx=$spTools.class.forName("sailpoint.api.SailPointFactory").getMethod("getFactory", null).invoke(null, null).getCurrentContext())
#set($ruleObj=$spctx.getObjectByName($spTools.class.forName("sailpoint.object.Rule"), "Bean Shell Dev Guide - 017 Generate Email Contents"))
#set($ruleArgs = {
"someKey" : "someValue",
"otherKey" : "otherValue"
})
#set($dynamicBodyContent=$spctx.runRule($ruleObj, $ruleArgs))
You can refer article: https://community.sailpoint.com/t5/Technical-White-Papers/BSDG-17-Dynamic-E-Mail-content-with-Bean-Shell/ta-p/73123.
In your case, you can pass the entitlement value, and other relevant details to the rule argument and execute the rule to return the display name which you want.