code: public Object[] toArrayCached() {
          Object[] readCacheArray = generatedCacheMap.values().toArray();
          Object[] writeCacheArray = resultSetCacheMap.values().toArray();
  
          Object[] combinedCacheArray = new Object[readCacheArray.length + writeCacheArray.length];
  
          System.arraycopy(readCacheArray, 0, combinedCacheArray, 0, readCacheArray.length);
          System.arraycopy(writeCacheArray, 0, combinedCacheArray, readCacheArray.length, writeCacheArray.length);
  
          return combinedCacheArray;
      }
docs: Returns array of cached elements (inc. statement as first element).
  
  @return arrya of cached elements