if (Debug.debugging("layer")) { Debug.output(getLayer().getName() + ": StandardPCPolicy projectionChanged with NEW projection, handling it within current thread."); }
    public void projectionChanged(ProjectionEvent pe) {	Projection proj = layer.setProjection(pe);	// proj will be null if the projection hasn't changed, a 	// signal that work does not need to be done.	if (proj != null) {	    // Some criteria can decide whether	    // starting another thread is worth it...	    if (shouldSpawnThreadForPrepare()) {		layer.doPrepare();		return;	    } else {		layer.prepare();		layer.repaint();	    }	} else {	    layer.repaint();	}	layer.fireStatusUpdate(LayerStatusEvent.FINISH_WORKING);    }