if ( rendDefObj == null ) throw new ValidationException( "RenderingDef for Pixels="+pixelsId+" not found."); } finally {
if (rendDefObj == null) {     rendDefObj = Renderer.createNewRenderingDef(pixelsObj); Renderer.resetDefaults(rendDefObj, pixelsObj, pixMetaSrv); pixMetaSrv.saveRndSettings(rendDefObj); iUpdate.flush(); rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); } } finally {
    public void lookupRenderingDef(long pixelsId)    {        rwl.writeLock().lock();                try {            this.rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId);            this.renderer = null;                        if ( rendDefObj == null )                throw new ValidationException(                        "RenderingDef for Pixels="+pixelsId+" not found.");        } finally {            rwl.writeLock().unlock();        }                if (log.isDebugEnabled())            log.debug("lookupRenderingDef for Pixels="+pixelsId+" succeeded: "+this.rendDefObj);            }