docs: protected Object[] getBatch() {
  
          Object[] objectArray = new Object[batchSize];
          int index = 1;
          synchronized (this) {
              objectArray[0] = get(); // always get at least 1
              while (getCurrentNumElements() > minPoolSize / 2 && index < batchSize) {
                  objectArray[index] = get();
                  index++;
              }
          }
          return objectArray;
      }