throw new CacheException("Unknown command id " + id + "!");
}
} else {
ExtendedModuleCommandFactory mcf = (ExtendedModuleCommandFactory) commandFactories.get(id);
if (mcf != null)
return mcf.fromStream(id, parameters, cacheName);
else
throw new CacheException("Unknown command id " + id + "!");
}
command.setParameters(id, parameters);
return command;