Iterator<IActuator> lights = this.lights.iterator();
while (lights.hasNext() && context.getBrightness() < targetBrightness) {
LightingActuator light = (LightingActuator) lights.next();
if (light.getState() == IActuator.ACTIVE
&& light.getBrightness() < light.getMaxBrightness()) {
light.turnUp();
notifyListeners("light " + light.getId() + " turned up");
} else if (light.getState() == IActuator.IDLE) {
light.enable();
notifyListeners("light " + light.getId() + " enabled");
}