ResultHandler resultHandler = new ResultHandler(){
@Override
public void handleResult(ResultContext context) {
IssueDto issueDto = (IssueDto) context.getResultObject();
if (authorizedRootProjectIds.contains(issueDto.getProjectId())) {
<BUG>issues.add(issueDto);

} else {
}
if (issues.size() >= maxResults) {

context.stop();</BUG>
}

ResultHandler resultHandler = new ResultHandler(){
@Override
public void handleResult(ResultContext context) {
IssueDto issueDto = (IssueDto) context.getResultObject();
if (authorizedRootProjectIds.contains(issueDto.getProjectId())) {
authorizedIssues.add(issueDto);
} else {
defaultIssueQueryResult.setSecurityExclusions(true);
