/**
  * check update
  *
  * @param   Tinebase_Model_Application $_application
  * @throws  Setup_Exception
  */
 public function checkUpdate(Tinebase_Model_Application $_application)
 {
     $xmlTables = $this->getSetupXml($_application->name);
     if (isset($xmlTables->tables)) {
         foreach ($xmlTables->tables[0] as $tableXML) {
             $table = Setup_Backend_Schema_Table_Factory::factory('Xml', $tableXML);
             if (true == $this->_backend->tableExists($table->name)) {
                 try {
                     $this->_backend->checkTable($table);
                 } catch (Setup_Exception $e) {
                     Setup_Core::getLogger()->error(__METHOD__ . '::' . __LINE__ . " Checking table failed with message '{$e->getMessage()}'");
                 }
             } else {
                 throw new Setup_Exception('Table ' . $table->name . ' for application' . $_application->name . " does not exist. \n<strong>Update broken</strong>");
             }
         }
     }
 }