code: public static boolean isDescendant(String path, String descendant)
     {
        return !path.equals(descendant) && descendant.startsWith(path) && descendant.charAt(path.length()) == '/';
     }
docs: Determines if the <code>descendant</code> path is hierarchical a descendant of
  <code>path</code>.
  
  @param path
  the current path
  @param descendant
  the potential descendant
  @return <code>true</code> if the <code>descendant</code> is a descendant; <code>false</code>
  otherwise.