public Group getGroup ( String groupName ) { Group result = null ; for ( Group item : getGroupsList ( ) ) { if ( item . getName ( ) . equals ( groupName ) ) { result = item ; } } return result ; }
Get the Group instance from the list by name .