private Collection<CDIPortletContext> contexts;
@SuppressWarnings("unused")
public void afterBeanDiscovery(@Observes AfterBeanDiscovery afterBeanDiscovery) {
List<CDIPortletContext> contextList = new ArrayList<CDIPortletContext>(2);
contextList.add(new PortletLifecycleContextImpl());
contextList.add(new PortletRedisplayedContextImpl());
for (CDIPortletContext context : contextList) {
afterBeanDiscovery.addContext(context);
}