if (scope.hasChildScope(room)) {
scope = scope.getScope(room);
} else if (scope.createChildScope(room)) {
scope = scope.getScope(room);
} else {
throw new ScopeNotFoundException(scope, room);
}
}
} else {
throw new ScopeNotFoundException(scope, room);
}
if (scope instanceof WebScope && ((WebScope) scope).isShuttingDown()) {
throw new ScopeShuttingDownException(scope);
}