{
final CountDownLatch done = new CountDownLatch( n );
for (int i = 0; i < n; i++)
{
boolean b = ((setup >>> i) & 1) == 0;
final RegState change = b? RegState.registered: RegState.unregistered;
new Thread(new Runnable() {
public void run()
{
trm.changeRegistration( change, null );