code: public static Function<Triple, Triple> fixDatesIfNecessary(final FedoraResource r,
                                                        final Converter<Node, Resource> translator) {
          return t -> {
              if (t.getPredicate().toString().equals(LAST_MODIFIED_DATE.toString())
                      && t.getSubject().equals(translator.convert(getJcrNode(r)).asNode())) {
                  final Calendar c = new Calendar.Builder().setInstant(r.getLastModifiedDate().toEpochMilli()).build();
                  return new Triple(t.getSubject(), t.getPredicate(), createTypedLiteral(c).asNode());
              }
              return t;
          };
      }
docs: A method that takes a Triple and returns a Triple that is the correct representation of
  that triple for the given resource.  The current implementation of this method is used by
  {@link PropertiesRdfContext} to replace the reported {@link org.fcrepo.kernel.api.RdfLexicon#LAST_MODIFIED_DATE}
  with the one produced by {@link #getLastModifiedDate}.
  @param r the Fedora resource
  @param translator a converter to get the external identifier from a jcr node
  @return a function to convert triples