} finally { if(propertiesConfigurator != null) { props.removeListener(listener); toRestore.forEach(pair -> props.put(pair[0], pair[1]));
} finally { if(propertiesConfigurator != null) { props.removeListener(listener); toRestore.forEach(pair -> props.put(pair[0], pair[1]));