@Override public Context getCurrentContext(final Class<? extends Annotation> scopeType) { if (scopeType.equals(RequestScoped.class)) { return getRequestContext(); } else if (scopeType.equals(SessionScoped.class)) { return getSessionContext(); } else if (scopeType.equals(ApplicationScoped.class)) { return getApplicationContext(); } else if (supportsConversation() && scopeType.equals(ConversationScoped.class)) { return getConversationContext(); } else if (scopeType.equals(Dependent.class)) { return dependentContext; } else if (scopeType.equals(Singleton.class)) { return getSingletonContext(); } return null; }