{
haDbs = haDbs != null ? haDbs : new ArrayList<GraphDatabaseService>();
int machineId = haDbs.size()+1;
File slavePath = dbPath( machineId );
PlaceHolderGraphDatabaseService placeHolderDb = new PlaceHolderGraphDatabaseService( slavePath.getAbsolutePath() );
Broker broker = makeSlaveBroker( master, 0, machineId, placeHolderDb );
Map<String,String> cfg = new HashMap<String, String>(config);
cfg.put( HighlyAvailableGraphDatabase.CONFIG_KEY_HA_MACHINE_ID, Integer.toString(machineId) );
cfg.put( Config.KEEP_LOGICAL_LOGS, "true" );
HighlyAvailableGraphDatabase db = new HighlyAvailableGraphDatabase(
slavePath.getAbsolutePath(), cfg, wrapBrokerAndSetPlaceHolderDb( placeHolderDb, broker ) );