// operation. This is obviously not very efficient, but this cache loader
// should only be used during migration, so any inefficiencies should
// only be temporary.
Context cliCtx = createContext();
Command command = cliCtx.getCommandRegistry().getCommand(parsed.getCommand());
command.execute(cliCtx, parsed);
ResponseMatcher.Result result = ((ResponseMatcher) cliCtx.getOutputAdapter())
.getResult(Collections.singletonList(parsed));
if (result.isError)
throw new CacheException("Unable to load entry: " + result.result);