public bool TrySave(DataCollection collection, out DataCollectionHashCode hashCode)
 {
     hashCode = GetByDataCollectionId(collection.Id);
     if (hashCode == null || hashCode.UpdateHashCode(collection))
     {
         if (hashCode == null)
         {
             hashCode = collection.NewDataCollectionHashCode();
         }
         Save(hashCode);
         return true;
     }
     return false;
 }