buffer.close();
if (buffer != null) buffer.close();
    public void load()    {        rwl.writeLock().lock();        try        {            errorIfNullPixels();            /*             * TODO we could also allow for setting of the buffer! perhaps             * better caching, etc.             */            PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj);            renderer = new Renderer(pixMetaSrv, pixelsObj, rendDefObj, buffer);            try            {    			buffer.close();    		}            catch (IOException e)            {    			e.printStackTrace();    			throw new ResourceError(e.getMessage());    		}        }        finally        {            rwl.writeLock().unlock();        }    } 