protected void updateRefreshingPeriod(IKey key) {
if (key != null) {
IDataSourceProducer producer = DataSourceProducerProvider.getProducer(key.getSourceProduction());
if (producer instanceof AbstractRefreshingManager<?>) {
((AbstractRefreshingManager<?>) producer).setRefreshingStrategy(key, new PolledRefreshingStrategy(
(int) periodSwitch.getValue()));
// We transmit refreshing strategy to sub-key
if (key instanceof HistoryKey) {
updateRefreshingPeriod(((HistoryKey) key).getHistory());
}