/**
  * Apply the current version element data to the plugin as the current version.
  * 
  * @param object SeguePluginsAPI $plugin
  * @param object DOMElement $element
  * @return void
  * @access protected
  * @since 1/23/08
  */
 protected function applyCurrentPluginVersion(SeguePluginsAPI $plugin, DOMElement $element)
 {
     $versionElement = $this->getSingleElement('./currentVersion/child::node()', $element);
     $doc = new Harmoni_DOMDocument();
     $doc->appendChild($doc->importNode($versionElement, true));
     try {
         $plugin->applyVersion($doc);
     } catch (InvalidVersionException $e) {
         HarmoniErrorHandler::logException($e, 'Segue');
         printpre($e->getMessage());
     }
 }