@Override
public void transition(final HttpServletRequest request, final String windowId, final PortletRequestLifecycle.State state) {
if (getBeanStore() == null) {
if (state.isPhase(RESOURCE_PHASE)) {
setBeanStore(new ResourceTempBeanStore(request));
} else {
setBeanStore(new SessionBeanStore(request));
}
}