code: protected void findEntryPoint() {
          if (entryPoint == null) {
              StringBuilder path = new StringBuilder();
              Resource parent = resource;
              String name = null;
              while (parent != null && !ResourceUtil.CONTENT_NODE.equals(name = parent.getName())) {
                  if (inheritanceType != Type.contentBased) {
                      if (path.length() > 0) {
                          path.insert(0, '/');
                      }
                      path.insert(0, name);
                  }
                  parent = parent.getParent();
              }
              if (inheritanceType != Type.nodeRelated && inheritanceType != Type.sameContent
                      && parent != null && ResourceUtil.CONTENT_NODE.equals(name)) {
                  // the resource is a child of an element with a content subtree ('jcr:content/...')
                  path.insert(0, '/');
                  path.insert(0, ResourceUtil.CONTENT_NODE);
                  relativePath = path.toString();
                  entryPoint = parent.getParent();
              } else {
                  // node inheritance or no content subtree ('jcr:content/...') detected...
                  relativePath = "";
                  entryPoint = resource.getParent();
                  if (inheritanceType == Type.sameContent && parent != null && ResourceUtil.CONTENT_NODE.equals(name)) {
                      exitPoint = parent;
                  }
              }
          }
      }
docs: Retrieves the first parent node for inheritance traversal (that is, the node above jcr:content)
  and defines the relativePath of the property wrt. this node.