<BUG>}String version = Versions.getVersion(gaugeConfig);for (GaugeConfig loopConfig : configs) {if (Versions.getVersion(loopConfig.toProto()).equals(version)) {throw new IllegalStateException("This exact gauge already exists");}}configs.add(GaugeConfig.create(gaugeConfig));</BUG><CONTEXT>List<GaugeConfig> configs = Lists.newArrayList(configService.getGaugeConfigs());for (GaugeConfig loopConfig : configs) {if (loopConfig.mbeanObjectName().equals(gaugeConfig.getMbeanObjectName())) {throw new DuplicateMBeanObjectNameException();}<extra_id_0>configService.updateGaugeConfigs(configs);</CONTEXT>
[DELETED]