memoryUsage.setLimit(TEN_MB);
memoryManager.setMemoryUsage(memoryUsage);
StoreUsage storeUsage = new StoreUsage();
storeUsage.setLimit(TWENTY_MB);
memoryManager.setStoreUsage(storeUsage);
TempUsage tempDiskUsage = new TempUsage();
tempDiskUsage.setLimit(TEN_MB);
memoryManager.setTempUsage(tempDiskUsage);
broker.setSystemUsage(memoryManager);
// Set the persistent adapter
KahaDBPersistenceAdapter persistenceAdapter = new KahaDBPersistenceAdapter();
persistenceAdapter.setJournalMaxFileLength((int)TEN_MB);