return invokeNextInterceptor(ctx, command);
} else {
TotalOrderRemoteTransactionState state = getTransactionState(ctx);
try {
state.preparing();
if (state.isRollbackReceived()) {
//this means that rollback has already been received
transactionTable.removeRemoteTransaction(command.getGlobalTransaction());
throw new CacheException("Cannot prepare transaction" + command.getGlobalTransaction().globalId() +
". it was already marked as rollback");