model: Fix original Contest Store to compile in new environment
diff --git a/model/cs/custom-policies/freshness-policy.hpp b/model/cs/custom-policies/freshness-policy.hpp
index 9d66c66..ae10862 100644
--- a/model/cs/custom-policies/freshness-policy.hpp
+++ b/model/cs/custom-policies/freshness-policy.hpp
@@ -105,7 +105,7 @@
       insert(typename parent_trie::iterator item)
       {
         // get_time (item) = Simulator::Now ();
-        Time freshness = item->payload()->GetData()->GetFreshness();
+        Time freshness = MilliSeconds(item->payload()->GetData()->getFreshnessPeriod().count());
         if (!freshness.IsZero()) {
           get_freshness(item) = Simulator::Now() + freshness;
 
@@ -128,7 +128,7 @@
       inline void
       erase(typename parent_trie::iterator item)
       {
-        if (!item->payload()->GetData()->GetFreshness().IsZero()) {
+        if (item->payload()->GetData()->getFreshnessPeriod() != time::milliseconds::zero()) {
           // erase only if freshness is non zero (otherwise an item is not in the policy
           policy_container::erase(policy_container::s_iterator_to(*item));
         }