public void init(){
  if (initDepth.get() == null) {
    initDepth.set(1);
  }
 else {
    initDepth.set(initDepth.get() + 1);
  }
  if (resourceCache.get() == null) {
    resourceCache.set(new HashMap<String,Object>());
  }
  if (cacheLocked.get() == null) {
    cacheLocked.set(Boolean.FALSE);
  }
}

public void init ( ) { if ( initDepth . get ( ) == null ) { initDepth . set ( 1 ) ; } else { initDepth . set ( initDepth . get ( ) + 1 ) ; } if ( resourceCache . get ( ) == null ) { resourceCache . set ( new HashMap < String , Object > ( ) ) ; } if ( cacheLocked . get ( ) == null ) { cacheLocked . set ( Boolean . FALSE ) ; } }
initialises cache for current thread - scope .
