public function getStyle($name, $subname = null)
    {
        $name    = strtolower($name);
        $subname = strtolower($subname);
        
        if (strpos($name, '.') !== false && !$subname) {
            list($name, $subname) = explode('.', $name);
        }
        
        if (($mappings = $this->getStyleMappings()) && isset($mappings[$name])) {
            
            if (!$subname) {
                $subname = $name;
            }
            
            if (is_array($mappings[$name])) {
                return isset($mappings[$name][$subname]) ? $mappings[$name][$subname] : null;
            } else {
                return $mappings[$name];
            }
            
        }
        
        return $name;
    }