removeScopeEventListener(listener);
}
@Override
public void setScopeActive(String scopeID, boolean active) {
if (!containsScope(scopeID)) throw new NoSuchScopeException(scopeID);
// Prevent no-changes from firing events.
boolean previousStatus = isScopeActive(scopeID);
Scope scope = getScope(scopeID);
if (active == previousStatus) return;
if (active) {