code: private String[] splitPath(String path) {
  
          path = path.replaceAll("^/", "").replaceAll("/$", "");
          return path.split("/");
      }
docs: Splits a path into components.<p>
  
  @param path the path to split
  @return the path components