code: private CoreContainer createCoreContainer(String solrHomeDirectory, File solrXmlFile) {
  
  		Method createAndLoadMethod = ClassUtils.getStaticMethod(CoreContainer.class, "createAndLoad", String.class,
  				File.class);
  
  		if (createAndLoadMethod != null) {
  			return (CoreContainer) ReflectionUtils.invokeMethod(createAndLoadMethod, null, solrHomeDirectory, solrXmlFile);
  		}
  
  		createAndLoadMethod = ClassUtils.getStaticMethod(CoreContainer.class, "createAndLoad", Path.class, Path.class);
  		return (CoreContainer) ReflectionUtils.invokeMethod(createAndLoadMethod, null,
  				FileSystems.getDefault().getPath(solrHomeDirectory), FileSystems.getDefault().getPath(solrXmlFile.getPath()));
  	}
docs: Create {@link CoreContainer} for Solr version 4.4+ and handle changes in .
  
  @param solrHomeDirectory
  @param solrXmlFile
  @return