public List<HistoricProcessInstance> executeList(
     CommandContext commandContext,
     Map<String, Object> parameterMap,
     int firstResult,
     int maxResults) {
   return commandContext
       .getHistoricProcessInstanceEntityManager()
       .findHistoricProcessInstancesByNativeQuery(parameterMap, firstResult, maxResults);
 }
 public long executeCount(CommandContext commandContext, Map<String, Object> parameterMap) {
   return commandContext
       .getHistoricProcessInstanceEntityManager()
       .findHistoricProcessInstanceCountByNativeQuery(parameterMap);
 }