private void handleWithWaitForBlocks(final CacheRpcCommand cmd, final ComponentRegistry cr, final org.jgroups.blocks.Response response, boolean preserveOrder) throws Throwable {
final StateTransferManager stm = cr.getStateTransferManager();
// We must have completed the join before handling commands
// (even if we didn't complete the initial state transfer)
if (cmd instanceof TotalOrderPrepareCommand && !stm.ownsData()) {
reply(response, null);
return;
}
CommandsFactory commandsFactory = cr.getCommandsFactory();