protected static URL appendUrlPath(URL url,String append) throws MalformedURLException {
  return new URL(url.getProtocol() + "://" + url.getAuthority()+ url.getPath()+ append+ (url.getQuery() != null ? "?" + url.getQuery() : ""));
}

protected static URL appendUrlPath ( URL url , String append ) throws MalformedURLException { return new URL ( url . getProtocol ( ) + "://" + url . getAuthority ( ) + url . getPath ( ) + append + ( url . getQuery ( ) != null ? "?" + url . getQuery ( ) : "" ) ) ; }
appends to the path of the url
