public FriendGroup addFriendGroup ( String name ) { final RosterGroup g = connection . getRoster ( ) . createGroup ( name ) ; if ( g != null ) { return new FriendGroup ( this , connection , g ) ; } return null ; }
Creates a new FriendGroup . If this FriendGroup contains no Friends when you logout it will be erased from the server .