Map<String, String> config = MapUtil.stringMap( extraConfig,
HighlyAvailableGraphDatabase.CONFIG_KEY_HA_MACHINE_ID, String.valueOf( masterId ) );
String path = dbPath( 0 ).getAbsolutePath();
PlaceHolderGraphDatabaseService placeHolderDb = new PlaceHolderGraphDatabaseService( path );
Broker broker = makeMasterBroker( master, masterId, placeHolderDb );
HighlyAvailableGraphDatabase db = new HighlyAvailableGraphDatabase( path,
config, wrapBrokerAndSetPlaceHolderDb( placeHolderDb, broker ) );
placeHolderDb.setDb( db );
// db.newMaster( null, new Exception() );
master = new MasterImpl( db );
}