Updated code for references retrieval so that only those with a "last modification datetime" that is greater of the passed datetime are retrieved. Before were retrieved also references with a value equal to the passed datetime.