while ( currentId <= highId )
{
try
{
try
<BUG>{
RelationshipRecord record = store.getRecord( currentId, reusableNodeRecord, CHECK );
if ( record != null && record.inUse() )</BUG>
{
<BUG>return next( record.getId() );
</BUG>
}

while ( currentId <= highId )
{
try
{
try
{
NodeRecord record = store.getRecord( currentId, reusableNodeRecord );
if ( record != null && record.inUse() )
{
return next( record.getId() );
