try {
// try reading configuration from the configured repository path
UpToDateNodeStateConfiguration nodeStateConfiguration = new UpToDateNodeStateConfiguration(
nodeStore, String.valueOf(context.getProperties().get(
CONFIGURATION_PATH)));
solrServerProvider = new EmbeddedSolrServerProvider(
nodeStateConfiguration.getSolrServerConfiguration());
oakSolrConfigurationProvider = new EmbeddedSolrConfigurationProvider(
nodeStateConfiguration);
} catch (Exception e) {
// use the default config and the OSGi based server configuration
solrServerProvider = new EmbeddedSolrServerProvider(
solrServerConfigurationProvider.getSolrServerConfiguration());
oakSolrConfigurationProvider = new EmbeddedSolrConfigurationProvider();
}
}