public function isLocked($absPath)
{
$request = $this->getRequest(Request::PROPFIND, $absPath);
$request->setBody($this->buildPropfindRequest(array('D:lockdiscovery')));
$request->setDepth(0);
$dom = $request->executeDom();
$lockInfo = $this->getRequiredDomElementByTagNameNS($dom, self::NS_DAV, 'lockdiscovery');
return $lockInfo->childNodes->length > 0;
}