Autowire GroupPickerSearchService to get default groups

I want to get the list of default groups (jira-administrator, jira-servicedesk-users, jira-software-users) from the API. I found GroupPickerSearchService.findGroups(), but if I try to autwire it I get:

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.atlassian.jira.bc.group.search.GroupPickerSearchService’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport(value=)}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1506)

and this is my class


public class HomeAction extends JiraWebActionSupport{

public HomeAction(@ComponentImport GroupPickerSearchService groupPickerSearchService){
this.groupPickerSearchService = groupPickerSearchService;
}
}

And I don’t understand why the exception is thrown, can anyone help?