Source:
<code>Server() { initSettings(); <START> this.localSolrServer = new ConcurrentUpdateSolrClient.Builder("http://localhost:" + currentSolrServerPort + "/solr").build(); END> serverAction = new ServerAction(); solr8Folder = InstalledFileLocator.getDefault().locate("solr", Server.class.getPackage().getName(), false); solr4Folder = InstalledFileLocator.getDefault().locate("solr4", Server.class.getPackage().getName(), false); javaPath = PlatformUtil.getJavaPath(); solr8CmdPath = Paths.get(solr8Folder.getAbsolutePath(), "bin", "autopsy-solr.cmd"); solr8Home = Paths.get(PlatformUtil.getUserDirectory().getAbsolutePath(), "solr"); if (!solr8Home.toFile().exists()) { try { Files.createDirectory(solr8Home); Files.copy(Paths.get(solr8Folder.getAbsolutePath(), "server", "solr", "solr.xml"), solr8Home.resolve("solr.xml")); Files.copy(Paths.get(solr8Folder.getAbsolutePath(), "server", "solr", "zoo.cfg"), solr8Home.resolve("zoo.cfg")); FileUtils.copyDirectory(Paths.get(solr8Folder.getAbsolutePath(), "server", "solr", "configsets").toFile(), solr8Home.resolve("configsets").toFile()); } catch (IOException ex) { logger.log(Level.SEVERE, "Failed to create Solr home folder:", ex); } } solr4Home = Paths.get(PlatformUtil.getUserDirectory().getAbsolutePath(), "solr4"); if (!solr4Home.toFile().exists()) { try { Files.createDirectory(solr4Home); Files.copy(Paths.get(solr4Folder.getAbsolutePath(), "solr", "solr.xml"), solr4Home.resolve("solr.xml")); Files.copy(Paths.get(solr4Folder.getAbsolutePath(), "solr", "zoo.cfg"), solr4Home.resolve("zoo.cfg")); } catch (IOException ex) { logger.log(Level.SEVERE, "Failed to create Solr home folder:", ex); } } currentCoreLock = new ReentrantReadWriteLock(true); logger.log(Level.INFO, "Created Server instance using Java at {0}", javaPath); }</code><technical_language>this call getSolrClient()</technical_language>

Target:
Server() { initSettings(); this.localSolrServer = getSolrClient("http://localhost:" + currentSolrServerPort + "/solr"); serverAction = new ServerAction(); File solr8Folder = InstalledFileLocator.getDefault().locate("solr", Server.class.getPackage().getName(), false); File solr4Folder = InstalledFileLocator.getDefault().locate("solr4", Server.class.getPackage().getName(), false); javaPath = PlatformUtil.getJavaPath(); Path solr8Home = Paths.get(PlatformUtil.getUserDirectory().getAbsolutePath(), "solr"); if (!solr8Home.toFile().exists()) { try { Files.createDirectory(solr8Home); Files.copy(Paths.get(solr8Folder.getAbsolutePath(), "server", "solr", "solr.xml"), solr8Home.resolve("solr.xml")); Files.copy(Paths.get(solr8Folder.getAbsolutePath(), "server", "solr", "zoo.cfg"), solr8Home.resolve("zoo.cfg")); FileUtils.copyDirectory(Paths.get(solr8Folder.getAbsolutePath(), "server", "solr", "configsets").toFile(), solr8Home.resolve("configsets").toFile()); } catch (IOException ex) { logger.log(Level.SEVERE, "Failed to create Solr home folder:", ex); } } Path solr4Home = Paths.get(PlatformUtil.getUserDirectory().getAbsolutePath(), "solr4"); if (!solr4Home.toFile().exists()) { try { Files.createDirectory(solr4Home); Files.copy(Paths.get(solr4Folder.getAbsolutePath(), "solr", "solr.xml"), solr4Home.resolve("solr.xml")); Files.copy(Paths.get(solr4Folder.getAbsolutePath(), "solr", "zoo.cfg"), solr4Home.resolve("zoo.cfg")); } catch (IOException ex) { logger.log(Level.SEVERE, "Failed to create Solr home folder:", ex); } } currentCoreLock = new ReentrantReadWriteLock(true); logger.log(Level.INFO, "Created Server instance using Java at {0}", javaPath); }