public TransactionStore createTransactionStore() throws IOException {
if (transactionStore == null) {
while (true) {
try {
Store store = getStore();
MapContainer container = store
.getMapContainer(PREPARED_TRANSACTIONS_NAME, "transactions");
container.setKeyMarshaller(new CommandMarshaller(wireFormat));
container.setValueMarshaller(new TransactionMarshaller(wireFormat));
container.load();
transactionStore = new KahaTransactionStore(this, container);
transactionStore.setBrokerService(brokerService);
break;
} catch (StoreLockedExcpetion e) {
LOG.info("Store is locked... waiting " + (STORE_LOCKED_WAIT_DELAY / 1000)