/**
   * @desc Sets the first timex of type DATE in the document timex list as the
   *       document creation time TODO: make sure "first" in list is necessarily
   *       first that appears in document! Should be, unless the relevant string
   *       is somehow dropped during sentence tokenization.
   */
public static void setFirstDateAsDCT(SieveDocument doc) {
    if (doc.getDocstamp() == null) {
      for (Timex nextTimex : doc.getTimexes()) {
        if (nextTimex.getType().equals(Timex.Type.DATE)) {
          nextTimex.setDocumentFunction(DocumentFunction.CREATION_TIME);
          doc.addCreationTime(nextTimex);
          break;
        }
      }
    }
  }
public static void setFirstDateAsDCT(SieveDocument doc) {
if (doc.getDocstamp() == null) {
for (Timex nextTimex : doc.getTimexes()) {
if (nextTimex.getType().equals(Timex.Type.DATE)) {
nextTimex.setDocumentFunction(DocumentFunction.CREATION_TIME);
doc.addCreationTime(nextTimex);
break;
}
}
}
}
public static void setFirstDateAsDCT(SieveDocument doc) {
if (doc.getDocstamp() == null) {
for (Timex nextTimex : doc.getTimexes()) {
if (nextTimex.getType().equals(Timex.Type.DATE)) {
nextTimex.setDocumentFunction(DocumentFunction.CREATION_TIME);
doc.addCreationTime(nextTimex);
break;
}
}
}
}
public static void setFirstDateAsDCT(SieveDocument doc) {
if (doc.getDocstamp() == null) {
for (Timex nextTimex : doc.getTimexes()) {
if (nextTimex.getType().equals(Timex.Type.DATE)) {
nextTimex.setDocumentFunction(DocumentFunction.CREATION_TIME);
doc.addCreationTime(nextTimex);
break;
}
}
}
}