private static String matchablePath(String path){
  if (path == null) {
    return "/";
  }
 else   if (path.endsWith("/")) {
    return path;
  }
 else {
    return path + "/";
  }
}

private static String matchablePath ( String path ) { if ( path == null ) { return "/" ; } else if ( path . endsWith ( "/" ) ) { return path ; } else { return path + "/" ; } }
returns a non - null path ending in " / " .
