code: private String fixPrefix(String prefix) {
  		String fixedPrefix = prefix.startsWith("/") ? prefix : "/" + prefix;
  		return fixedPrefix.endsWith("/") ? fixedPrefix : fixedPrefix + "/";
  	}
docs: Helper method. Adds a leading and trailing slash if they are not present (i.e. "assets" becomes "/assets/")
  
  @param prefix the path to be fixed, can't be null.
  
  @return the prefix with leading and trailing slashes.