{
try {  errorIfNullPixels();
    public void load()    {        rwl.writeLock().lock();        {            /*             * TODO we could also allow for setting of the buffer! perhaps             * better caching, etc.             */            PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj);            StatsFactory sf = new StatsFactory();            if (pixelsObj == null)            {                throw new IllegalStateException("Pixels object not set.");            }                        // FIXME: This should be stripped out            /*            if (rendDefObj == null)             {                this.rendDefObj =                         Helper.createDefaultRenderingDef(pixelsObj,pixelStats);                pixelsObj.getSettings().add(rendDefObj);               }            */                        renderer = new Renderer(pixelsObj, rendDefObj, buffer);        }        rwl.writeLock().unlock();    } 