DatabaseConfig dbConfig = new DatabaseConfig();
dbConfig.setAllowCreate(allowCreate);
dbConfig.setTransactional(true);
/* Set the trigger for updating the SyncCleanerBarrier. */
SyncTrigger trigger = new SyncTrigger(SYNC_TRIGGER_NAME);
ArrayList<Trigger> list = new ArrayList<Trigger>();
list.add(trigger);
dbConfig.setTriggers(list);
DbInternal.setReplicated(dbConfig, true);