public function getLockData(core_kernel_classes_Resource $resource)
    {
        $values = $resource->getPropertyValues($this->getLockProperty());
        if ((is_array($values)) && (count($values)==1)) {
            return OntoLockData::getLockData(array_pop($values));
        } else {
            return null;
        }

    }