public function createPattern($name = 'html', $attributes = array(), $data = array())
    {
        $patternName = ucfirst($name);

        $objectName = 'Library\Pattern\\' . $patternName;
        $pattern = new $objectName($this, $attributes, $data);

        return $pattern;
    }