allCurStateMap.put(instance, Collections.unmodifiableMap(allCurStateMap.get(instance)));
}
_currentStateMap = Collections.unmodifiableMap(allCurStateMap);
_idealStateRuleMap = Maps.newHashMap();
HelixProperty clusterConfig = accessor.getProperty(keyBuilder.clusterConfig());
if (clusterConfig != null) {
for (String simpleKey : clusterConfig.getRecord().getSimpleFields().keySet()) {
if (simpleKey.startsWith(IDEAL_STATE_RULE_PREFIX)) {
String simpleValue = clusterConfig.getRecord().getSimpleField(simpleKey);
String[] rules = simpleValue.split("(?<!\\\\),");
Map<String, String> singleRule = Maps.newHashMap();
for (String rule : rules) {
String[] keyValue = rule.split("(?<!\\\\)=");
if (keyValue.length >= 2) {