/// <summary>
 /// convert JobDataMap to hashEntry array
 /// </summary>
 /// <param name="jobDataMap">JobDataMap</param>
 /// <returns>HashEntry[]</returns>
 protected HashEntry[] ConvertToHashEntries(JobDataMap jobDataMap)
 {
     var entries = new List<HashEntry>();
     if (jobDataMap != null)
     {
         entries.AddRange(jobDataMap.Select(entry => new HashEntry(entry.Key, entry.Value.ToString())));
     }
     return entries.ToArray();
 }