docs: private static Object[] _addToArray(Object[] array, Object key,
              Object value, int increment)
      {
          Object[] newArray = null;
          if (array != null)
          {
              int length = array.length;
              newArray = new Object[length + (2 * increment)];
              System.arraycopy(array, 0, newArray, 2, length);
          }
          else
          {
              newArray = new Object[2 * increment];
          }
  
          newArray[0] = key;
          newArray[1] = value;
          return newArray;
      }