protected String fetchTTS(HttpServletRequest req, String type, String id)
    throws ServletException, IOException {
        
        if (type.equals(AudioTag.AUDIO_TYPE_CONTACT)) {
            BeanCollection contactBeanList = retrieveContactSortableBeanList(req);
            if (contactBeanList == null) {
                contactBeanList = createContactSortableBeanList(req);
            }
            ContactBean contactBean = findContactBeanById(contactBeanList, id);
            return (contactBean.getFirstname() + " " + contactBean
                    .getLastname());
        } else if (type.equals(AudioTag.AUDIO_TYPE_ENTITY)) {
            BeanCollection entityBeanList = retrieveEntityBeanList(req);
            if (entityBeanList == null) {
                entityBeanList = createEntityBeanList(req);
            }
            EntityBean entityBean = findEntityBeanById(entityBeanList, id);
            return entityBean.getName();
        } else if (type.equals(AudioTag.AUDIO_TYPE_DISTINCTINFO)) {
            BeanCollection contactBeanList = retrieveContactSortableBeanList(req);
            if (contactBeanList == null) {
                contactBeanList = createContactSortableBeanList(req);
            }
            ContactBean contactBean = findContactBeanById(contactBeanList, id);
            return contactBean.getDistinctInfo();
        } else
            return "";
    }