* @throws SAXException On any error while parsing the core configuration files
* @throws IllegalStateException if a {@link ParserConfigurationException}
* is thrown by the server.
*/
protected final void activateCore(IndexMetadata metadata, SolrServerAdapter server) throws IOException, SAXException {
SolrCoreProperties coreConfig = new SolrCoreProperties(metadata.getIndexName());
coreConfig.setCoreDir(new File(managedSolrDir,metadata.getDirectory()));
Object token = new Object();
synchronized (serverInUser) {
//prevent shutting down the server while we initialise a core
serverInUser.add(token);
}