code: public boolean hasProperty(String relPath) throws RepositoryException
     {
        checkValid();
  
        JCRPath itemPath = locationFactory.parseRelPath(relPath);
        QPathEntry name = itemPath.getInternalPath().getEntries()[itemPath.getInternalPath().getEntries().length - 1];
  
        NodeData parent;
        if (itemPath.getLength() == 1)
        {
           parent = nodeData();
        }
        else
        {
           parent =
              (NodeData)dataManager.getItemData(nodeData(), itemPath.getInternalPath().makeParentPath().getEntries(),
                 ItemType.NODE);
        }
  
        return parent == null ? false : dataManager.getItemData(parent, name, ItemType.PROPERTY) != null;
     }
docs: {@inheritDoc}