Try this to get the map:
view.getViewMap()
This is the same as viewScope
( view.getViewMap().equals( viewScope ) -> true )
.
The same with facesContext.getExternalContext().getSessionMap() and sessionScope.
If you're working with java code to manipulate the viewScope, then you could go this route. Get the view instance/getViewMap, and manipulate the viewScope accordingly.
<self promotion>
I used my XPages API Inspector to find out the above. If you're trying to do stuff with the API that your friend Google can't help you with, it's quite useful to mess about with the API using the inspector
http://www.openntf.org/projects/pmt.nsf/ProjectLookup/XPages%20API%20Inspector
</self promotion>