Adding methods to allow overriding to BuildIndex.java and UriDiscovery.java