protected void configure(final Widget w, final Widget container) {
    w.getElement().setAttribute("data-date-format", format);

    // If configuring not for the first time, datepicker must be removed first.
    this.remove(w.getElement());

    configure(
        w.getElement(),
        container.getElement(),
        format,
        weekStart.getValue(),
        toDaysOfWeekDisabledString(daysOfWeekDisabled),
        autoClose,
        startView.getValue(),
        minView.getValue(),
        showTodayButton,
        highlightToday,
        keyboardNavigation,
        forceParse,
        viewSelect.getValue(),
        language.getCode(),
        position.getPosition());
  }