code: private boolean isValidEntryAndPath(CmsClientSitemapEntry entry, String toPath) {
  
          return ((toPath != null)
              && (CmsResource.getParentFolder(toPath) != null)
              && (entry != null)
              && (getEntry(CmsResource.getParentFolder(toPath)) != null)
              && (getEntry(entry.getSitePath()) != null));
      }
docs: Validates the entry and the given path.<p>
  
  @param entry the entry
  @param toPath the path
  
  @return <code>true</code> if entry and path are valid