224225226227228229230231232233234
final AgentService agentService = getService(AgentService.class); if(agentService != null) { for(final Task task : tasks) { agentService.processTask(task); } } } @Override