public static function factory(RendererInterface $renderer, BaseDataObject $object, $urlType, array $attributes = array())
    {
        $htmlRenderer = new self();
        $htmlRenderer->setRenderer($renderer);
        $htmlRenderer->setObject($object);
        $htmlRenderer->setUrlType($urlType);
        $htmlRenderer->setAttributes($attributes);

        return $htmlRenderer->build();
    }