*/
public static final BaseAction<?> get(final BaseUser previousLoggedUser, final BaseAction<?> actionToChain)
{
final BaseAction<?> afterConnectAction = DkMain.controller().getSpecificAfterConnectAction(previousLoggedUser);
afterConnectAction.setLastChainActionCreator(new ChainActionCreator()
{
@Override
public BaseAction<?> getCreatedActions()
{
BaseAction<?> ret = null;
if (DkMain.controller().getCurrentScreen() == null)
{
ret = BaseShowScreenAction.get(DkMain.controller().getDefaultScreen());
}
else
{
if (DkMain.config().loadDefaultScreenAfterEachLogin()
&& !DkMain.controller().isCurrentScreen(DkMain.controller().getDefaultScreen()))
{
log.debug("BaseMain.loadDefaultScreenAfterEachLogin() && !BaseMain.controller().isCurrentScreen(BaseMain.controller().getDefaultScreen())");
log.debug("BaseMain.controller().getDefaultScreen()=" + DkMain.controller().getDefaultScreen());
log.debug("BaseMain.controller().getCurrentScreen()=" + DkMain.controller().getCurrentScreen().getClass());
ret = BaseShowScreenAction.get(DkMain.controller().getDefaultScreen());
ret.setLastChainActionCreator(new ChainActionCreator()
{
@Override
public BaseAction<?> getCreatedActions()
{
return !DkMain.model().getUserLogged().equals(previousLoggedUser) ? BaseReloadCurrentScreenAction