Object localCommandResult = null;
if (selfInvoke) {
log.debugf("Invoking %s locally", cmd);
selfCmd.init(factory, invoker, icc, dm, rpc.getAddress());
try {
localCommandResult = selfCmd.perform(null);
log.debugf("Invoked %s locally", cmd);
} catch (Throwable e1) {
throw new CacheException("Could not invoke MapReduce task locally ", e1);
}
}