if (cachedSolrServer == null) {
if (serverType != null && !"none".equals(serverType)) {
SolrServerConfigurationProvider solrServerConfigurationProvider = solrServerConfigurationProviders.get(serverType);
if (solrServerConfigurationProvider != null) {
try {
SolrServerConfiguration solrServerConfiguration = solrServerConfigurationProvider.getSolrServerConfiguration();
SolrServerProvider solrServerProvider = solrServerConfiguration.getProvider();
cachedSolrServer = solrServerProvider.getSolrServer();
} catch (Exception e) {
log.error("could not get a SolrServerProvider of type {}", serverType, e);
}
}