public static String reformatUrlString(String urlString, boolean trailingSlash) throws MalformedURLException {
public static String reformatUrlString(String urlString, boolean trailingSlash) {
	public static String reformatUrlString(String urlString, boolean trailingSlash) throws MalformedURLException {		if ( urlString == null ) {			throw new IllegalArgumentException( "urlString must not be null" );		}		if (trailingSlash && !urlString.endsWith("/")) {			urlString += "/";		}		if (!urlString.startsWith("http://") && !urlString.startsWith("https://")) {			urlString = "http://" + urlString;		}		return urlString;	}