code: @Override
    public void cleanup() {
      if (this.array == null) {
        // #cleanup may be called twice in case of exceptions
        // avoid calling #free twice
        return;
      }
      // https://docs.oracle.com/javase/tutorial/jdbc/basics/array.html#releasing_array
      try {
        this.array.free();
        this.array = null;
      } catch (SQLException e) {
        throw new CleanupFailureDataAccessException("could not free array", e);
      }
    }
docs: {@inheritDoc}