protected function _import($plugin, $autocreate = true, $dispatcher = null)
    {
        $type = preg_replace('/[^A-Z0-9_\.-]/i', '', $plugin->type);
        $element  = preg_replace('/[^A-Z0-9_\.-]/i', '', $plugin->element);
        $path	= ANPATH_PLUGINS.DS.$type.DS.$element.'.php';

        if (isset($this->_paths[$path]) && $this->_paths[$path] === true) {
           return true;
        }

        if(! file_exists($path)) {
           $this->_paths[$path] = false;
           return false;
        }

        require_once($path);
        $this->_paths[$path] = true;

        if ($autocreate) {
            $className = 'plg'.ucfirst($type).ucfirst($element);
            if (class_exists($className)) {
                $config = array(
                  'id' => $plugin->id,
                  'name' => $plugin->name,
                  'type' => $plugin->type,
                  'element' => $plugin->element,
                  'meta' => $plugin->meta
                );
                $config = new AnConfig($config);
                $instance = new $className($dispatcher, $config);
            }
        }

        return true;
    }