if( num == 1 ) {
if( BasicSessionCollection.findByName( coll2, name ) != null ) {
Session.makeNamePattern( name, args );
name = BasicSessionCollection.createUniqueName( Session.SO_NAME_PTRN, args, coll2 );
}
edit.addPerform( new EditSetSessionObjectName( this, (SessionObject) coll.get( 0 ),
name ));
} else {
Session.makeNamePattern( name, args );
for( i = 0; i < num; i++ ) {
so = (SessionObject) coll.get( i );
name = BasicSessionCollection.createUniqueName( Session.SO_NAME_PTRN, args, coll2 );
edit.addPerform( new EditSetSessionObjectName( this, so, name ));
coll2.add( so );
}
}
edit.perform();
edit.end();