Integer httpPort = httpConfiguration.getHttpPort();
String context = httpConfiguration.getContext();
try {
JettySolrRunner jettySolrRunner = new JettySolrRunner(solrHomePath, context, httpPort, "solrconfig.xml", "schema.xml", true);
jettySolrRunner.start(true);
} finally {
Thread.currentThread().setContextClassLoader(classLoader);
}
HttpSolrServer httpSolrServer = new HttpSolrServer(new StringBuilder(SolrServerConfigurationDefaults.LOCAL_BASE_URL)
.append(':').append(httpPort).append(coreName).toString());