public static function getByPath($path)
{
$path = Model\Element\Service::correctPath($path);
try {
$object = new self();
if (Tool::isValidPath($path)) {
$object->getDao()->getByPath($path);
return self::getById($object->getId());
}
} catch (\Exception $e) {
Logger::warning($e->getMessage());
}
return null;
}