public Void call() throws Exception {
try {
for (Object key : batch) {
if (taskContext.isStopped())
break;
MarshalledEntry entry = null;
if (loadEntry || loadMetadata) {
entry = load(key);
}
if (!loadEntry || !loadMetadata) {
entry = ctx.getMarshalledEntryFactory().newMarshalledEntry(key,
loadEntry ? entry.getValue() : null,
loadMetadata ? entry.getMetadata() : null);
}
cacheLoaderTask.processEntry(entry, taskContext);
}
} catch (Exception e) {
log.errorExecutingParallelStoreTask(e);