return masterConnection.connected();
}
public boolean reconnectToMaster()</BUG>
{
<BUG>masterConnection = new Connection( masterIp, masterPort );
while ( !masterConnection.connected() )

{
if ( masterConnection.connectionRefused() )</BUG>
{

throw new UnderlyingStorageException(
"Unable to recover slave to consistent state", e );
}
nextVersion++;
}
}
}
public boolean isConnectedToMaster()
{
for ( Connection masterConnection : masterConnections )
{
if ( !masterConnection.connected() )
{
