if (handler == null) {
throw new RuntimeException("No worker available for handler identifier: " + task.handler);
}
// The worker only needs to specify how it wants to deserialize its params.
return handler.convert(new TaskKitFactory(task, handler, logService, workerIdService));
}
@SuppressWarnings("unchecked")
@Override
public Object process(TaskKit kit) throws Exception {