while ( true )
{
ExpansionSource next = current.next();
if ( next != null )
{
<BUG>queue.put( next, currentAggregatedValue + calculateValue( next ) );
}</BUG>
else
{
break;

while ( true )
{
ExpansionSource next = current.next();
if ( next != null )
{
P newPriority = addPriority( next, currentAggregatedValue,
calculateValue( next ) );
queue.put( next, newPriority );
}
else
{
break;
