public void clear(FacesContext facesContext,Map<String,Object> viewMap){
  if (LOGGER.isLoggable(Level.FINEST)) {
    LOGGER.log(Level.FINEST,"Clearing @ViewScoped CDI beans for given view map: {0}");
  }
  Map<String,ViewScopeContextObject> contextMap=getContextMap(facesContext,viewMap);
  if (contextMap != null) {
    destroyBeans(viewMap,contextMap);
  }
}

public void clear ( FacesContext facesContext , Map < String , Object > viewMap ) { if ( LOGGER . isLoggable ( Level . FINEST ) ) { LOGGER . log ( Level . FINEST , "Clearing @ViewScoped CDI beans for given view map: {0}" ) ; } Map < String , ViewScopeContextObject > contextMap = getContextMap ( facesContext , viewMap ) ; if ( contextMap != null ) { destroyBeans ( viewMap , contextMap ) ; } }
clear the given view map .
