def METHOD_NAME(value):
    global ENTITY_DICT
    if not ENTITY_DICT:
        ENTITY_DICT = dict((e.id, e.entity_name.replace("'", "&apos;")) for e in Entity.objects.all())
    return '%s (Entity ID: %s)' % (ENTITY_DICT.get(value), value)