code: public boolean isChildResourceOf(CmsResource resource) {
  
          return (resource != null)
              && resource.isFolder()
              && !(getStructureId().equals(resource.getStructureId()))
              && ((getRootPath().indexOf(resource.getRootPath()) == 0));
      }
docs: Returns <code>true</code> in case this resource is child resource of the provided resource which is assumed to be a folder.<p>
  
  @param resource the resource to check
  
  @return <code>true</code> in case this resource is child resource of the provided resource which is assumed to be a folder