public function checkoutItem($path)
{
$path = $this->encodeAndValidatePathForDavex($path);
try {
$request = $this->getRequest(Request::CHECKOUT, $path);
$request->execute();
} catch (HTTPErrorException $e) {
if ($e->getCode() == 405) {
// TODO: when checking out a non-versionable node, we get here too. in that case the exception is very wrong
throw new UnsupportedRepositoryOperationException($e->getMessage());
}
throw new RepositoryException($e->getMessage());
}
return;
}