serverProperties = parsedServerProperties.clone();
CoreContainer container = new CoreContainer(solrDir.getAbsolutePath());
File solrCof = new File(solrDir,parsedServerProperties.getSolrXml());
ClassLoader classLoader = updateContextClassLoader();
try {
container.load(solrDir.getAbsolutePath(), solrCof);
} finally {
Thread.currentThread().setContextClassLoader(classLoader);
}
this.server = container;
this.registrations = Collections.synchronizedMap(