private function generateFromConfig($entity,array $entityConfig,$type,$parameters = array())
    {
        $method = $entityConfig['type'][$type]['method'];
        if($method === "renderDefault"){
            return call_user_func_array(array($this,$method), array($entity,$entityConfig['type'][$type],$type,$parameters));
        }else{
            $object = $entityConfig['type'][$type]["linkGeneratorItem"];
            return call_user_func_array(array($object,$method), array($entity,$entityConfig['type'][$type],$type,$parameters));
        }
    }