&& groomIter.hasNext()) {
GroomServerStatus groomStatus = groomIter.next();
List<GroomServerAction> actionList = actionMap.get(groomStatus);
GroomProtocol worker = groomServerManager.get().findGroomServer(
groomStatus);
try {
// dispatch() to the groom server
GroomServerAction[] actions = new GroomServerAction[actionList.size()];
actionList.toArray(actions);
Directive d1 = new DispatchTasksDirective(actions);
worker.dispatch(d1);
} catch (IOException ioe) {
LOG.error(
"Fail to dispatch tasks to GroomServer "
+ groomStatus.getGroomName(), ioe);
return Boolean.FALSE;