rangeList = new OMCRangeList (level6Range);
OMCRangeList rangeList = new OMCRangeList (level6Range);
  protected void setupOperatingModes () {    Collection modes =       blackboard.query (new UnaryPredicate() { 	  public boolean execute (Object obj) { return (obj instanceof OperatingMode); }	});    if (modes.isEmpty()) {      OMCRange level2Range = new IntRange (LEVEL_2_MIN.intValue(), LEVEL_2_MAX.intValue());      OMCRangeList rangeList = new OMCRangeList (level2Range);      publishAdd (level2Horizon = new OperatingModeImpl (LEVEL_2_TIME_HORIZON, rangeList, 							 LEVEL_2_TIME_HORIZON_DEFAULT));      OMCRange level6Range = new IntRange (LEVEL_6_MIN.intValue(), LEVEL_6_MAX.intValue());      rangeList = new OMCRangeList (level6Range);      publishAdd (level6Horizon = new OperatingModeImpl (LEVEL_6_TIME_HORIZON, rangeList,							 LEVEL_6_TIME_HORIZON_DEFAULT));      if (isInfoEnabled())	info (getAgentIdentifier() + " created operating modes - " + 	      "level 2 time horizon is " + level2Horizon + 	      " and level 6 is " + level6Horizon);    } else {      if (isInfoEnabled()) {	info (getName() + " skipping creating of operating modes since got them from blackboard.");      }      if (modes.size () != 2) {	error (getName() + " expecting two operating modes on rehydation - got " + modes.size () + 	       " instead : " + modes);      }      for (Iterator iter = modes.iterator(); iter.hasNext(); ) {	OperatingMode mode = (OperatingMode) iter.next();	if (mode.getName().equals (LEVEL_2_TIME_HORIZON))	  level2Horizon = mode;	else	  level6Horizon = mode;      }    }  }