for (WorkFragment work : request.getFragmentsList()) {
// Always initialize the TransactionWorkCallback for the first callback
if (first) {
RemoteWorkCallback work_callback = ts.getWorkCallback();
if (work_callback.isInitialized()) work_callback.finish(); // HACK
work_callback.init(ts, partitions, callback);
if (debug.val)
LOG.debug(String.format("Initializing %s for %s",
work_callback.getClass().getSimpleName(), ts));
}