/// <summary>
 /// Returns the commit point that was in effect at a given date/time
 /// </summary>
 /// <param name="storeName">The name of the store to search</param>
 /// <param name="timestamp">The time to search for</param>
 /// <returns>An ICommitPointInfo representing the latest commit point in the store that was committed before the date/time specified by <paramref name="timestamp"/>. If
 /// there is no such commit point (either because the store was created after that date/time or the store has been coalesced and historical data removed),
 /// this method will return null.
 /// </returns>
 public ICommitPointInfo GetCommitPoint(string storeName, DateTime timestamp)
 {
     try
     {
         var commitPoint = _serverCore.GetCommitPoint(storeName, timestamp);
         if (commitPoint == null)
         {
             return(null);
         }
         return(new CommitPointInfoWrapper(new CommitPointInfo
         {
             StoreName = storeName,
             Id = commitPoint.LocationOffset,
             CommitTime = commitPoint.CommitTime,
             JobId = commitPoint.JobId
         }));
     }
     catch (Exception ex)
     {
         Logging.LogError(BrightstarEventId.ServerCoreException,
                          "Error getting commit point at date/time {0} for store {1}", timestamp, storeName);
         throw new BrightstarClientException(
                   String.Format("Error getting commit point at date/time {0} for store {1}. {2}", timestamp, storeName,
                                 ex.Message), ex);
     }
 }