code: private boolean matchPath(String expected, String actual) {
  
          return CmsStringUtil.joinPaths(actual, "/").equals(CmsStringUtil.joinPaths(expected, "/"));
      }
docs: Checks if a path matches another part.<p>
  
  This is basically an equality test, but ignores the presence/absence of trailing slashes.
  
  @param expected the expected path
  @param actual the actual path
  @return true if the actual path matches the expected path