if ( this.localGraph == null || iAmCurrentlyMaster )
{
internalShutdown();
startAsSlave();
restarted = true;
<BUG>}
tryToEnsureIAmNotABrokenMachine( broker.getMaster() );</BUG>
}
if ( restarted )
{

if ( this.localGraph == null || iAmCurrentlyMaster )
{
internalShutdown();
startAsSlave();
restarted = true;
}
else
{
((SlaveIdGeneratorFactory) getConfig().getIdGeneratorFactory()).forgetIdAllocationsFromMaster();
}
tryToEnsureIAmNotABrokenMachine( broker.getMaster() );
}
if ( restarted )
{
