protected function renderDefault($entity,$entityConfig,$type = self::TYPE_LINK_DEFAULT,array $parameters = array())
    {
        $route = $entityConfig['route'];
        $routeParameters = $entityConfig['routeParameters'];
        $labelMethod = $entityConfig['labelMethod'];
        
        if($labelMethod !== null){
            $label = call_user_func_array([$entity, $labelMethod],array());
        }else{
            $label = (string)$entity;
        }
        if($entityConfig["translation_domain"] !== null){
            $label = $this->trans($label,array(),$entityConfig["translation_domain"]);
        }
        $originalLabel = $label;
        $truncate = 0;
        $addTitle = false;
        if(isset($parameters['truncate'])){
            $truncate = (int) $parameters['truncate'];
            if(strlen($label) > $truncate){
                $label = mb_substr($label, 0, $truncate,'UTF-8').'...';
                $addTitle = true;
            }
        }
        
        if(isset($parameters['_onlyIcon']) && $parameters['_onlyIcon'] === true){
            return $entityConfig['icon'];
        }
        
        $icon = "";
        if($entityConfig['icon'] !== null){
            $icon = sprintf('<i class="%s"></i>',$entityConfig['icon']);
        }
        $buildUrl = $entityConfig["buildUrl"];
        if($buildUrl === null){
            $href = $this->buildUrl($entity, $entityConfig);
        }else{
            $href = $entityConfig["linkGeneratorItem"]->$buildUrl($entity, $entityConfig);
        }
        $entityConfig['url'] = $href;
        if(isset($parameters['_onlyUrl']) && $parameters['_onlyUrl'] === true){
            return $href;
        }
        if($href != ''){
            $extraParameters = '';
            if($addTitle === true){
                $extraParameters .= 'title = "'.$originalLabel.'"';
            }
            $color = $this->container->getParameter('tecnocreaciones_tools.service.link_generator.color');
            $link = sprintf('<a href="%s" style="color:%s" %s>%s&nbsp;%s</a>',$href,$color,$extraParameters,$icon,$label);
        }else{
            $link = sprintf('%s&nbsp;%s',$icon,$label);
        }
        
        if(isset($parameters['_onlyConf']) && $parameters['_onlyConf'] === true){
            return $entityConfig;
        }
        return $link;
    }