if (context != null && context.isActive()) {
return context;
}
if (context instanceof ErrorContext) {
ErrorContext cxt = (ErrorContext) context;
throw cxt.getException();
}
/*
if (! isScope(scopeType)) {
throw new IllegalStateException(L.l("'@{0}' is not a valid scope because it does not have a @Scope annotation",