public function getViewConfiguration($objectName, $viewName)
    {
        $modelConfiguration = $this->getModelConfiguration($objectName);
        if (isset($modelConfiguration['views'][$viewName])) {
            $viewConfiguration = $modelConfiguration['views'][$viewName];
            if (isset($viewConfiguration['fields']) === false) {
                $viewConfiguration['fields'] = array();
            }

            foreach ($viewConfiguration['fields'] as $i => $viewField) {
                $fieldConfiguration = $this->getField($objectName, $viewField['name'], false);
                if (is_array($fieldConfiguration)) {
                    $viewConfiguration['fields'][$i] = array_replace_recursive($fieldConfiguration, $viewField);
                }
            }
            usort($viewConfiguration['fields'], array($this, 'sortByLocation'));

            return $viewConfiguration;
        }
    }