code: public ResourceHandle getContentResource() {
          if (contentResource == null) {
              if (ResourceUtil.CONTENT_NODE.equals(getName()) || !this.isValid()) {
                  contentResource = this;
              } else {
                  contentResource = ResourceHandle.use(this.getChild(ResourceUtil.CONTENT_NODE));
                  if (!contentResource.isValid()) {
                      contentResource = this; // fallback to the resource itself if no content exists
                  }
              }
          }
          return contentResource;
      }
docs: Retrieves the 'content' resource of this resource. Normally the content resource is the resource ot the
  'jcr:content' subnode if this resource ist not the content resource itself.
  
  @return the content resource if present or self