code: private void ensurePendingCapacity() {
          if (this.pendingProcessings == null) {
              this.pendingProcessings = new IEngineProcessable[5];
              this.pendingProcessingsSize = 0;
          }
          if (this.pendingProcessingsSize == this.pendingProcessings.length) {
              this.pendingProcessings = Arrays.copyOf(this.pendingProcessings, this.pendingProcessings.length + 5);
          }
      }
docs: /*
  Before adding a new entry to the array of pending jobs, this will make sure there is enough room for it.