code: public static List<String> getPathComponents(String path) {
  
          List<String> result = CmsStringUtil.splitAsList(path, "/");
          Iterator<String> iter = result.iterator();
          while (iter.hasNext()) {
              String token = iter.next();
              if (CmsStringUtil.isEmptyOrWhitespaceOnly(token)) {
                  iter.remove();
              }
          }
          return result;
      }
docs: Splits a path into its non-empty path components.<p>
  
  If the path is the root path, an empty list will be returned.<p>
  
  <b>Directly exposed for JSP EL</b>, not through {@link org.opencms.jsp.util.CmsJspElFunctions}.<p>
  
  @param path the path to split
  
  @return the list of non-empty path components