@@ -0,0 +1,1280 @@
+//%0A// Copyright described at LICENSE.txt%0A//%0Apackage org.persapiens.jsfboot.javaxfaces;%0A%0Aimport java.util.Map;%0A%0Aimport javax.faces.context.FacesContext;%0A%0Aimport org.springframework.beans.factory.ObjectFactory;%0Aimport org.springframework.beans.factory.config.Scope;%0A%0A/**%0A * Implementation of view scope%0A */%0Apublic class ViewScope implements Scope%0A%7B%0A    @Override%0A    public Object get( String name, ObjectFactory objectFactory )%0A    %7B%0A        Map%3CString, Object%3E viewMap = FacesContext.getCurrentInstance().getViewRoot().getViewMap();%0A%0A        if ( viewMap.containsKey( name ) )%0A        %7B%0A            return viewMap.get( name );%0A        %7D%0A        else%0A        %7B%0A            Object object = objectFactory.getObject();%0A            viewMap.put( name, object );%0A%0A            return object;%0A        %7D%0A    %7D%0A%0A    @Override%0A    public Object remove( String name )%0A    %7B%0A        return FacesContext.getCurrentInstance().getViewRoot().getViewMap().remove( name );%0A    %7D%0A%0A    @Override%0A    public String getConversationId()%0A    %7B%0A        return null;%0A    %7D%0A%0A    @Override%0A    public void registerDestructionCallback( String name, Runnable callback )%0A    %7B%0A        //Not supported%0A    %7D%0A%0A    @Override%0A    public Object resolveContextualObject( String key )%0A    %7B%0A        return null;%0A    %7D%0A%7D%0A

fix #7