public function &getPlugin($type, $element = null)
  	{
		$results = array();
		$this->_load();

		foreach($this->_plugins as $plugin) {
			if (is_null($element)) {
				if($plugin->type == $type) {
					$results[] = $plugin;
				}
			} elseif($plugin->type == $type && $plugin->element == $element) {
				 $results = $plugin;
			}
		}

		return $results;
  	}