public function run()
    {
        $template           = new BackendTemplate('be_dcastylepicker');
        $template->main     = '';
        $template->headline = $GLOBALS['TL_LANG']['MSC']['metamodelspicker'];

        $inputName = Input::get('inputName');
        if (!preg_match('~^[a-z\-_0-9]+$~i', $inputName)) {
            throw new RuntimeException('Field-Parameter ERROR!');
        }

        $template->field = $inputName;
        $template->items = $GLOBALS[Input::get('item')];

        if (!strlen($template->headline)) {
            $template->headline = $GLOBALS['TL_CONFIG']['websiteTitle'];
        }

        $template->theme          = Backend::getTheme();
        $template->base           = Environment::get('base');
        $template->language       = $GLOBALS['TL_LANGUAGE'];
        $template->title          = $GLOBALS['TL_CONFIG']['websiteTitle'];
        $template->charset        = $GLOBALS['TL_CONFIG']['characterSet'];
        $template->pageOffset     = Input::cookie('BE_PAGE_OFFSET');
        $template->error          = (Input::get('act') == 'error') ? $GLOBALS['TL_LANG']['ERR']['general'] : '';
        $template->skipNavigation = $GLOBALS['TL_LANG']['MSC']['skipNavigation'];
        $template->request        = ampersand(Environment::get('request'));
        $template->top            = $GLOBALS['TL_LANG']['MSC']['backToTop'];
        $template->be27           = !$GLOBALS['TL_CONFIG']['oldBeTheme'];
        $template->expandNode     = $GLOBALS['TL_LANG']['MSC']['expandNode'];
        $template->collapseNode   = $GLOBALS['TL_LANG']['MSC']['collapseNode'];
        $template->strField       = Input::get('fld');

        $template->output();
    }