{
SynchronizationRecord rec = new SynchronizationRecord(act,
new Uid(), priority, quals);
if (addSynchronization(rec) != AddOutcome.AR_ADDED)
throw new WrongStateException();
}
else
{
AbstractRecord rec = new ParticipantRecord(act, new Uid(),
priority, quals);
if (add(rec) != AddOutcome.AR_ADDED)
throw new WrongStateException();
}
}