protected void setupStore(File storePath, String name) throws DatabaseException, AMQStoreException
{
_environment = createEnvironment(storePath);
new Upgrader(_environment, name).upgradeIfNecessary();
openDatabases();
_totalStoreSize = getSizeOnDisk();
}