public AbstractContext getRequestContext() {
ContextFactory contextFactory = WebBeansContext.currentInstance().getContextFactory();
RequestContext ctx = (RequestContext) contextFactory.getStandardContext(RequestScoped.class);
if (ctx == null) {
contextFactory.initRequestContext(null);
}
return (AbstractContext) contextFactory.getStandardContext(RequestScoped.class);
}