code: private static String pathRemoveLast(String path, RefBoolean isOutSide) {
  	if (path.length() == 0) {
  	    isOutSide.setValue(true);
  	    return "..";
  	}
  	else if (path.endsWith("..")) {
  	    isOutSide.setValue(true);
  	    return path.concat("/..");// path+"/..";
  	}
  	return path.substring(0, path.lastIndexOf('/'));
      }
docs: remove the last elemtn of a path
  
  @param path path to remove last element from it
  @param isOutSide
  @return path with removed element