public void destroyBeans(FacesContext facesContext,Map<String,Object> viewMap){
  if (LOGGER.isLoggable(Level.FINEST)) {
    LOGGER.log(Level.FINEST,"Destroying @ViewScoped beans from view map: {0}",viewMap);
  }
  ApplicationAssociate applicationAssociate=ApplicationAssociate.getInstance(facesContext.getExternalContext());
  if (applicationAssociate != null) {
    destroyBeans(applicationAssociate,viewMap);
  }
}

public void destroyBeans ( FacesContext facesContext , Map < String , Object > viewMap ) { if ( LOGGER . isLoggable ( Level . FINEST ) ) { LOGGER . log ( Level . FINEST , "Destroying @ViewScoped beans from view map: {0}" , viewMap ) ; } ApplicationAssociate applicationAssociate = ApplicationAssociate . getInstance ( facesContext . getExternalContext ( ) ) ; if ( applicationAssociate != null ) { destroyBeans ( applicationAssociate , viewMap ) ; } }
destroy the managed beans from the given view map .
