break;
case IndexUpdateCommand.COMMAND_ID:
c = new IndexUpdateCommand(cacheName);
break;
case IndexUpdateStreamCommand.COMMAND_ID:
c = new IndexUpdateStreamCommand(cacheName);
break;
default:
throw new IllegalArgumentException("Not registered to handle command id " + commandId);
}
c.setParameters(commandId, args);