try {
File config = new File(props.getProperty("dspace.dir")
+ "/config/dspace-solr-search.cfg");
if (config.exists()) {
props.combine(new ExtendedProperties(config.getAbsolutePath()));
} else {
ExtendedProperties defaults = new ExtendedProperties();
defaults.load(SolrServiceImpl.class.getResourceAsStream("dspace-solr-search.cfg"));
props.combine(defaults);
}