Welcome to the Jazz Community Forum
How to initialize a queryService?

I wanted to use the Repository Query API. The first thing I need to do is to get the queryService.
Searched in this forum and got some clues,
But it seems unacceptable by my compiler, getService method is not recognized.
Anyone to help me out? Thanks very much!
Searched in this forum and got some clues,
IQueryService queryService = getService(IQueryService.class);
But it seems unacceptable by my compiler, getService method is not recognized.
Anyone to help me out? Thanks very much!