public String normalizeUri(String uri){
  if (uri != null && !uri.endsWith("/")) {
    uri+="/";
  }
  return uri;
}

public String normalizeUri ( String uri ) { if ( uri != null && ! uri . endsWith ( "/" ) ) { uri += "/" ; } return uri ; }
normalizes a uri to ensure it ends with a " / "
