public URI resolveRelative ( URI uri ) { if ( uri != null && rvdOrigin != null && filterPrefix != null ) { if ( uri . isAbsolute ( ) ) return uri ; try { String uriString = uri . toString ( ) ; if ( uriString . startsWith ( filterPrefix ) ) return new URI ( rvdOrigin + uri . toString ( ) ) ; } catch ( URISyntaxException e ) { logger . error ( "Cannot resolve uri: " + uri . toString ( ) + ". Ignoring..." , e ) ; } } return uri ; }
if rvdOrigin is null no point in trying to resolve RVD location . We will return passed uri instead