code: public void recreateUISharedContexts(Session session) {
  		uiContexts.clear();
  		for (Context context : session.getContexts()) {
  			Context uiContext = context.duplicate();
  			uiContexts.put(context.getIndex(), uiContext);
  		}
  	}
docs: Reset the UI shared Context copies. The effect is that previous copies are discarded and new
  copies are created.
  
  @param session the session