code: protected Map<Address, Long> getSelectionMap(String wmId, DistributableWork work)
     {
        if (trace)
        {
           log.tracef("getSelectionMap(%s, %s)", wmId, work);
           log.tracef("ShortRunning: %s", shortRunning);
           log.tracef("LongRunning: %s", longRunning);
        }
  
        Map<Address, Long> sorted = null;
  
        if (WorkManagerUtil.isLongRunning(work) && longRunning.get(wmId) != null)
        {
           sorted = new HashMap<Address, Long>(longRunning.get(wmId));
        }
  
        if (sorted == null && shortRunning.get(wmId) != null)
           sorted = new HashMap<Address, Long>(shortRunning.get(wmId));
  
        return sorted;
     }
docs: Get explicit work manager override
  @param wmId The work manager identifier
  @param work The work instance
  @return The selection map