code: private static FactorFilter<Executor, ExecutableFlow> getCpuStatusFilter() {
      return FactorFilter
          .create(CPUSTATUS_FILTER_NAME, new FactorFilter.Filter<Executor, ExecutableFlow>() {
            private static final int MAX_CPU_CURRENT_USAGE = 95;
  
            @Override
            public boolean filterTarget(final Executor filteringTarget,
                final ExecutableFlow referencingObject) {
              if (null == filteringTarget) {
                logger.debug(String
                    .format("%s : filtering out the target as it is null.", CPUSTATUS_FILTER_NAME));
                return false;
              }
  
              final ExecutorInfo stats = filteringTarget.getExecutorInfo();
              if (null == stats) {
                logger.debug(String.format("%s : filtering out %s as it's stats is unavailable.",
                    CPUSTATUS_FILTER_NAME,
                    filteringTarget.toString()));
                return false;
              }
              return stats.getCpuUsage() < MAX_CPU_CURRENT_USAGE;
            }
          });
    }
docs: <pre>
  function to register the static Minimum Reserved Memory filter.
  NOTE :  this is a static filter which means the filter will be filtering based on the system
  standard which
  is not Coming for the passed flow.
  This filter will filter out any executors that the current CPU usage exceed 95%
  </pre>