public function renderWidget(array $fields, $customFielsGroup, $documentType='html', array $params = array())
    {
        $resolvedParams = array_merge($this->defaultParams, $params);
        
        return $this->container->get('templating')
            ->render($resolvedParams['layout'], array(
            	'cFGroup' => $customFielsGroup,
            	'cFData' => $fields,
                'show_empty' => $resolvedParams['show_empty']));
    }