}
private void copyStoreFromMaster( Pair<Master, Machine> master ) throws Exception
{
msgLog.logMessage( "Copying store from master" );
Response<Void> response = master.first().copyStore( new SlaveContext( machineId, 0, new Pair[0] ),
new ToFileStoreWriter( storeDir ) );
EmbeddedGraphDatabase tempDb = new EmbeddedGraphDatabase( storeDir );
try
{
MasterUtil.applyReceivedTransactions( response, tempDb, MasterUtil.txHandlerForFullCopy() );