public void logVelocityMessage(int level,String message){
  if (message.equals(Introspector.CACHEDUMP_MSG)) {
    sawCacheDump=true;
  }
}

public void logVelocityMessage ( int level , String message ) { if ( message . equals ( Introspector . CACHEDUMP_MSG ) ) { sawCacheDump = true ; } }
method to catch velocity log messages . when we see the introspector dump message , then set the flag
