public InputStream locate ( final String uri ) throws IOException { final UriLocator locator = getInstance ( uri ) ; if ( locator == null ) { return getDecoratedObject ( ) . locate ( uri ) ; } return locator . locate ( uri ) ; }
This implementation shows the problem with current design of locator implementation . Needs to be changed .