/**
  * Deletes an element
  * @param Element $element The element to delete
  */
 public static function deleteElement($element)
 {
     $logInstance = LogTool::getInstance();
     $logInstance->logDebug('Deletes ' . $element->getElementClass() . ' element with id #' . $element->id);
     // Updates element in database
     DatabaseFactory::deleteElement($element);
 }