public ViewScopeContextualStorage getContextualStorage ( BeanManager beanManager , String viewScopeId ) { ViewScopeContextualStorage contextualStorage = storageMap . get ( viewScopeId ) ; if ( contextualStorage == null ) { synchronized ( this ) { contextualStorage = storageMap . get ( viewScopeId ) ; if ( contextualStorage == null ) { contextualStorage = new ViewScopeContextualStorage ( beanManager ) ; storageMap . put ( viewScopeId , contextualStorage ) ; } } } return contextualStorage ; }
This method will return the ViewScopeContextualStorage or create a new one if no one is yet assigned to the current windowId .