Hi Vamirr. If you take a look to the javadocs you can see that for version 3.4 (unlike 3.3) the are two methods signatures for searchGroups:
searchGroups
public ScriptGroup[] searchGroups(java.lang.String shortNameFilter) Search for groups in all zones. Parameters: shortNameFilter - partial match on shortName (* and ?) work. If empty then matches everything. Returns: the groups matching the query
searchGroups
public ScriptGroup[] searchGroups(java.lang.String shortNameFilter, ScriptPagingDetails paging, java.lang.String sortBy) Search for groups in all zones. Parameters: shortNameFilter - partial match on shortName (* and ?) work. If empty then matches everything. paging - Paging object with max number to return, and items to skip sortBy - What to sort on (authorityName, shortName or displayName) Returns: the groups matching the query
The latter has a paging parameter that allows you to scroll across results. Hope this could help