public <T> T get(String viewId, String clientId, boolean create, Supplier<T> supplier) {
            Map<MVSKey, Object> mvsMap = getMVSStore(create);
            MVSKey mvsKey = MVSKey.of(viewId, clientId);

            T state = (T) mvsMap.get(mvsKey);
            if (state == null && create) {
                state = supplier.get();
                mvsMap.put(mvsKey, state);
            }

            return state;
        }
Gets multiview state attached to a component in a specific view.

@param viewId viewId of a page
@param clientId clientId of a component
@param create flag indicating if bean state should be created if does not exist in curent session
@param supplier bean state instance
@param <T> bean state generic

@return multiview state bean attached to a component
primefaces/src/main/java/org/primefaces/PrimeFaces.java