public static URI resolve(final URI baseURI,final String reference){
  return URIUtils.resolve(baseURI,URI.create(reference));
}

public static URI resolve ( final URI baseURI , final String reference ) { return URIUtils . resolve ( baseURI , URI . create ( reference ) ) ; }
resolves a uri reference against a base uri . work - around for bug in java . net . uri ( < http : / / bugs . sun . com / bugdatabase / view_bug . do ? bug_id = 4708535 > )
