collNewRcv = Collections.singletonList( rcv );
if( doc.getSelectedGroups().isEmpty() ) {
final PerformableEdit edit;
edit = new EditAddSessionObjects( this, doc.getMutableReceivers(), collNewRcv );
doc.getUndoManager().addEdit( edit.perform() );
} else {
final AbstractCompoundEdit edit;
edit = new BasicCompoundEdit();
final List selectedGroups = doc.getSelectedGroups().getAll();
for( int i = 0; i < collNewRcv.size(); i++ ) {