code: public Date getExpirationDate() {
          long timestamp = database.expirationOfDocument(documentId);
          if (timestamp == 0)
              return null;
          return new Date(timestamp);
      }
docs: A date/time after which this document will be automatically purged.