src/main/java/org/efaps/ui/wicket/models/objects/UIStructurBrowser.java
@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);
        }
    }
@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);
        }
    }
@ 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 ) ; } }
Store the Information in the Session.
Store the Information in the Session .