public void afterBegin() {

    super.afterBegin();
    SessionHistoryManager historyManager = getConversationSubject().getHistoryManager();
    Map<String, String> content = historyManager.getContent(getClass());

    if (content == null) return;
    if (content.containsKey("selectedMenu")) name = content.get("selectedMenu");
  }
 public void beforeEnd() {
   SessionHistoryManager historyManager = getConversationSubject().getHistoryManager();
   historyManager.register(getClass(), "selectedMenu", name);
   super.beforeEnd();
 }