public SolrXMLCoresLocator(String originalXML,ConfigSolrXmlOld cfg){
  this.solrXmlTemplate=buildTemplate(originalXML);
  this.cfg=cfg;
}

public SolrXMLCoresLocator ( String originalXML , ConfigSolrXmlOld cfg ) { this . solrXmlTemplate = buildTemplate ( originalXML ) ; this . cfg = cfg ; }
create a new solrxmlcoreslocator
