code: @Override
     public synchronized boolean shouldDistribute(DistributedWorkManager dwm, DistributableWork work)
     {
        if (trace)
           log.tracef("Work=%s", work);
  
        Boolean override = WorkManagerUtil.getShouldDistribute(work);
        if (override != null)
           return override.booleanValue();
  
        if (WorkManagerUtil.isLongRunning(work) && dwm.getLongRunningThreadPool() != null)
        {
           return !(dwm.getLongRunningThreadPool().getNumberOfFreeThreads() > watermark);
        }
        else
        {
           return !(dwm.getShortRunningThreadPool().getNumberOfFreeThreads() > watermark);
        }
     }
docs: {@inheritDoc}