code: @Override
      public Collection<String> pauseJobs(GroupMatcher<JobKey> groupMatcher, JedisCluster jedis) throws JobPersistenceException {
          Set<String> pausedJobGroups = new HashSet<>();
          if (groupMatcher.getCompareWithOperator() == StringMatcher.StringOperatorName.EQUALS) {
              final String jobGroupSetKey = redisSchema.jobGroupSetKey(new JobKey("", groupMatcher.getCompareToValue()));
              if (jedis.sadd(redisSchema.pausedJobGroupsSet(), jobGroupSetKey) > 0) {
                  pausedJobGroups.add(redisSchema.jobGroup(jobGroupSetKey));
                  for (String job : jedis.smembers(jobGroupSetKey)) {
                      pauseJob(redisSchema.jobKey(job), jedis);
                  }
              }
          } else {
              Map<String, Set<String>> jobGroups = new HashMap<>();
              for (final String jobGroupSetKey : jedis.smembers(redisSchema.jobGroupsSet())) {
                  if (groupMatcher.getCompareWithOperator().evaluate(redisSchema.jobGroup(jobGroupSetKey), groupMatcher.getCompareToValue())) {
                      jobGroups.put(jobGroupSetKey, jedis.smembers(jobGroupSetKey));
                  }
              }
              for (final Map.Entry<String, Set<String>> entry : jobGroups.entrySet()) {
                  if (jedis.sadd(redisSchema.pausedJobGroupsSet(), entry.getKey()) > 0) {
                      // This job group was not already paused. Pause it now.
                      pausedJobGroups.add(redisSchema.jobGroup(entry.getKey()));
                      for (final String jobHashKey : entry.getValue()) {
                          pauseJob(redisSchema.jobKey(jobHashKey), jedis);
                      }
                  }
              }
          }
          return pausedJobGroups;
      }
docs: Pause all of the <code>{@link Job}s</code> in the given group - by pausing all of their
  <code>Trigger</code>s.
  
  @param groupMatcher the mather which will determine which job group should be paused
  @param jedis        a thread-safe Redis connection
  @return a collection of names of job groups which have been paused
  @throws JobPersistenceException