public PrepareCommand buildPrepareCommand( GlobalTransaction gtx, List<WriteCommand> modifications, boolean onePhaseCommit) { PrepareCommand command = new PrepareCommand(gtx, modifications, onePhaseCommit); command.setCacheName(cacheName); return command; }