if (Monitor.activeCount() == 0)
Monitor.monitor();
}
private void setUpConfigurationProvider() {
ConfigurationProvider provider = createConfigurationProvider();
ConfigurationManager.destroyConfiguration();
//noinspection unchecked
ConfigurationManager.getConfigurationProviders().set(0, provider);
}