public static URI createRemainingURI(URI originalURI,Map<String,String> params) throws URISyntaxException {
  String s=createQueryString(params);
  if (s.length() == 0) {
    s=null;
  }
  return createURIWithQuery(originalURI,s);
}

public static URI createRemainingURI ( URI originalURI , Map < String , String > params ) throws URISyntaxException { String s = createQueryString ( params ) ; if ( s . length ( ) == 0 ) { s = null ; } return createURIWithQuery ( originalURI , s ) ; }
creates a uri from the original uri and the remaining parameters . when the query options of a uri are applied to certain objects the used portion of the query options needs to be removed and replaced with those that remain so that other parts of the code can attempt to apply the remainder or give an error is unknown values were given . this method is used to update a uri with those remainder values .
