@ Nullable public < T > T getSessionObject ( @ Nonnull final String key , @ Nonnull final Class < T > klazz , @ Nullable final T def ) { this . lock ( ) ; try { T result = klazz . cast ( this . sessionObjects . get ( key ) ) ; return result == null ? def : result ; } finally { this . unlock ( ) ; } }
Get saved session object . Object is presented and saved only for the current panel and only in memory .