RGBBuffer result = null; rwl.readLock().lock(); { if (renderer == null) throw new IllegalStateException(NULL_RENDERER);  result = renderer.render(pd);
rwl.readLock().lock();  try { errorIfInvalidState(); return renderer.render(pd); } finally { rwl.readLock().unlock();
    public RGBBuffer render(PlaneDef pd)            throws IOException, QuantizationException    {        RGBBuffer result = null;        rwl.readLock().lock();         {            if (renderer == null)                throw new IllegalStateException(NULL_RENDERER);                        result = renderer.render(pd);        }        rwl.readLock().unlock();        return result;    }