code: protected void fillRemainingFlowCapacityAndLastDispatchedTime(final ExecutorInfo stats) {
  
      final AzkabanExecutorServer server = AzkabanExecutorServer.getApp();
      if (server != null) {
        final FlowRunnerManager runnerMgr = AzkabanExecutorServer.getApp().getFlowRunnerManager();
        final int assignedFlows = runnerMgr.getNumRunningFlows() + runnerMgr.getNumQueuedFlows();
        stats.setRemainingFlowCapacity(runnerMgr.getMaxNumRunningFlows() - assignedFlows);
        stats.setNumberOfAssignedFlows(assignedFlows);
        stats.setLastDispatchedTime(runnerMgr.getLastFlowSubmittedTime());
      } else {
        logger.error("failed to get data for remaining flow capacity or LastDispatchedTime"
            + " as the AzkabanExecutorServer has yet been initialized.");
      }
    }
docs: fill the result set with the remaining flow capacity .
  
  @param stats reference to the result container which contains all the results, this specific
  method will only work on the property "remainingFlowCapacity".