String coreName = metadata.getIndexName();
if(coreName == null || coreName.isEmpty()){
throw new IllegalArgumentException("The parse metadata do not contain a valid value for the '"+
INDEX_NAME+"'!");
}
SolrServerAdapter server = this.server;
if(server == null){
log.info("Unable to update core '{}' because this ManagedSolrServer is already deactivated.");
return;
}
ServiceReference coreRef = server.getCore(coreName);
File currentCoreDir; //dir of the previous version
if(coreRef != null){
currentCoreDir = getCoreDir(coreRef,true);
} else { //no old version
currentCoreDir = null;