Handle toString context entity resolving