private void go(final ByteCodeScannerConfiguration configuration) { // ConfigurationBuilder config = new ConfigurationBuilder(); config.setUrls(configuration.getClassPathUrls()); if (!isNullOrEmpty(configuration.getIncludeExclude())) { config.filterInputsBy(FilterBuilder.parse(configuration.getIncludeExclude())); } // // we use our own specific scanner which means that the underlying Reflections code will // not be able to consume our output. But that's ok. // config.setScanners(this); // we don want reflections logs thank you try { Reflections.log = null; } catch (Error e) { //ignore } // this will cause the scanner code to run! new Reflections(config); // and write the results springIndexWriter.writeIndexes(); }