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