private String removeSchemeEnsureSlash(String url){
  String part=url.substring(url.indexOf(SCHEME_DELIMITER) + SCHEME_DELIMITER.length());
  if (!part.contains(SLASH)) {
    return part + SLASH;
  }
  return part;
}

private String removeSchemeEnsureSlash ( String url ) { String part = url . substring ( url . indexOf ( SCHEME_DELIMITER ) + SCHEME_DELIMITER . length ( ) ) ; if ( ! part . contains ( SLASH ) ) { return part + SLASH ; } return part ; }
removes the scheme , appends a slash if the resource contains a port .
