if (orphanGraphicLoaderPlugIns == null) { orphanGraphicLoaderPlugIns = new LinkedList(); } orphanGraphicLoaderPlugIns.add(pl);
    public void hookUpGraphicLoaderWithLayer(GraphicLoader gl) {	if (gl != null) {	    GraphicLoaderPlugIn glpi = new GraphicLoaderPlugIn();	    gl.setReceiver(glpi);	    glpi.setGraphicLoader(gl);	    LayerHandler lh = getLayerHandler();	    PlugInLayer pl = new PlugInLayer();	    pl.setPlugIn(glpi);	    pl.setName(gl.getName());	    pl.setVisible(newLayerVisible);	    if (lh != null) {		lh.addLayer(pl, newLayerIndex);	    } else {		// If we haven't seen the LayerHandler yet, just toss		// the PlugInLayer back into the MapHandler, where the		// LayerHandler will hopefully pick it up when it does		// get added.		// Can't do this, ConcurrentModificationException...// 		BeanContext bc = getBeanContext();// 		if (bc != null) {// 		    bc.add(pl);// 		}	    }	}    }