question: private static String massageURI ( String uri ) { uri = uri . trim ( ) ; int protocolEnd = uri . indexOf ( ':' ) ; if ( protocolEnd < 0 ) { uri = "http://" + uri ; } else if ( isColonFollowedByPortNumber ( uri , protocolEnd ) ) { uri = "http://" + uri ; } return uri ; }
target:  Transforms a string that represents a URI into something more proper, by adding or canonicalizing the protocol.