}
private Object visitSecondPhaseCommand(TxInvocationContext context, AbstractTransactionBoundaryCommand command, boolean commit) throws Throwable {
GlobalTransaction gtx = command.getGlobalTransaction();
if (log.isTraceEnabled()) {
log.tracef("Second phase command received. Commit?=%s Transaction=%s, Local=%s", commit, gtx.globalId(),
context.isOriginLocal());
}
TotalOrderRemoteTransactionState state = getTransactionState(context);