wData = Helper.createPlane(planeDef, i, metadata, pixels);
wData = PlaneFactory.createPlane(planeDef, i, metadata, pixels);
	RGBBuffer render(Renderer ctx, PlaneDef planeDef)		throws IOException, QuantizationException	{		//Set the context and retrieve objects we're gonna use.		renderer = ctx;		QuantumManager qManager = renderer.getQuantumManager();		PixelBuffer pixels = renderer.getPixels();        Pixels metadata = renderer.getMetadata();		ChannelBinding[] cBindings = renderer.getChannelBindings();        RenderingStats performanceStats = renderer.getStats();				//Initialize sizeX1 and sizeX2 according to the plane definition and		//create the RGB buffer.		initAxesSize(planeDef, metadata);        performanceStats.startMalloc();        log.info("Creating RGBBuffer of size " + sizeX1 + "x" + sizeX2);        RGBBuffer renderedDataBuf = new RGBBuffer(sizeX1, sizeX2);        performanceStats.endMalloc();        		//Process the first active wavelength.         Plane2D wData;		for (int i = 0; i < cBindings.length; i++) {			if (cBindings[i].getActive().booleanValue()) {                //Get the raw data.			    performanceStats.startIO(i);                wData = Helper.createPlane(planeDef, i, metadata, pixels);                performanceStats.endIO(i);                				try {  //Transform it into an RGB image.                    performanceStats.startRendering();                    renderWave(renderedDataBuf, wData, cBindings[i].getColor(),                               qManager.getStrategyFor(i));                    performanceStats.endRendering();				} catch (QuantizationException e) {					e.setWavelength(i);					throw e;				}				break;			}		}		//Done.        return renderedDataBuf;	}