/**
   * Sets this {@link EntityProperty} using the serialized <code>java.util.Date</code> value.
   *
   * @param value The <code>java.util.Date</code> value to set as the {@link EntityProperty} value.
   *     This value may be <code>null</code>.
   */
  public final synchronized void setValue(final Date value) {
    this.edmType = EdmType.DATE_TIME;
    this.type = Date.class;
    if (value == null) {
      this.value = null;
      this.isNull = true;
      return;
    } else {
      this.isNull = false;
    }

    this.value =
        Utility.getTimeByZoneAndFormat(value, Utility.UTC_ZONE, Utility.ISO8061_LONG_PATTERN);
  }