ColorMapModel cml = new ColorMapModel(model); ColorMapManager cmm = env.getColorMapManager(); cmm.putColorMapModel(cml); cmm.updateModel();
    public void handle(RequestEvent request, ResponseEvent response)    {        if(!(request instanceof LoadCategories) ||           !(response instanceof CategoriesChanged))        {            System.err.println("Invalid ACT types for CategoryChangeHandler");            return;        }                System.err.println("handling complete in CCH");        LoadCategories lc = (LoadCategories)request;        CategoriesChanged cc = (CategoriesChanged)response;                if(!cc.isDirty()) return; // no changes to be made                BrowserEnvironment env = BrowserEnvironment.getInstance();        BrowserManager manager = env.getBrowserManager();        List browserList = manager.getAllBrowsers();                System.err.println("checking browsers");        for(Iterator iter = browserList.iterator(); iter.hasNext();)        {            UIWrapper wrapper = (UIWrapper)iter.next();            BrowserController controller = wrapper.getController();            BrowserModel model = controller.getBrowserModel();            int browserID = model.getDataset().getID();            if(browserID == cc.getDatasetID())            {                System.err.println("found browser");                BrowserAgent agent = env.getBrowserAgent();                model.setCategoryTree(agent.loadCategoryTree(browserID));                model.fireModelUpdated();            }        }    }