question: public static String replaceEndPoint ( String url , String endPoint ) { return endPoint + url . replaceFirst ( DEFAULT_ENDPOINT , "" ) ; }
target:  Replace the url end point (schema + host + port) with the given end point.