code: @SuppressWarnings("unchecked")
      private void storeInSession()
      {
          try {
              if (!getMode().equals(TargetMode.CREATE)) {
                  final Map<String, Boolean> sessMap;
                  if (Context.getThreadContext().containsSessionAttribute(getCacheKey())) {
                      sessMap = (Map<String, Boolean>) Context.getThreadContext().getSessionAttribute(getCacheKey());
                  } else {
                      sessMap = new HashMap<>();
                  }
                  sessMap.put(getInstanceKey(), isExpanded());
                  Context.getThreadContext().setSessionAttribute(getCacheKey(), sessMap);
              }
          } catch (final EFapsException e) {
              UIStructurBrowser.LOG.error("Error storing Session info for StruturBrowser called by Command with UUID: {}",
                              getCommandUUID(), e);
          }
      }
docs: Store the Information in the Session.