protected function validate($view, $path)
{
if (!$view->file_exists($path)) {
throw new \Exception('Document not found ' . $path);
}
if (!$view->is_file($path)) {
throw new \Exception('Object ' . $path . ' is not a file.');
}
//TODO check if it is a valid odt
}