InsightReportService Component

Within the plugin the code insight service should be used in order to set code insight reports on commit level. Importing the code insight service leads to a dependency issue:

019-11-25 10:04:29,705 WARN  [Spring DM Context Creation Timer]  o.e.g.b.e.i.d.s.DependencyWaiterApplicationContextExecutor Timeout occurred before finding service dependencies for [NonValidatingOsgiBundleXmlApplicationContext(bundle=at.avengers.plugins.bitbucket.sonar-hook, config=osgibundle:/META-INF/spring/*.xml)]
2019-11-25 10:04:29,706 ERROR [Spring DM Context Creation Timer]  c.a.plugin.osgi.factory.OsgiPlugin Plugin 'at.avengers.plugins.bitbucket.sonar-hook' never resolved service '&insightReportService' with filter '(&(objectClass=com.atlassian.bitbucket.codeinsights.report.InsightReportService)(objectClass=com.atlassian.bitbucket.codeinsights.report.InsightReportService))'
2019-11-25 10:04:29,706 ERROR [Spring DM Context Creation Timer]  c.a.plugin.osgi.factory.OsgiPlugin Unable to start the plugin container for plugin 'at.avengers.plugins.bitbucket.sonar-hook'
org.springframework.context.ApplicationContextException: Application context initialization for 'at.avengers.plugins.bitbucket.sonar-hook' has timed out waiting for (&(objectClass=com.atlassian.bitbucket.codeinsights.report.InsightReportService)(objectClass=com.atlassian.bitbucket.codeinsights.report.InsightReportService))

The OSGI browser in bitbucket shows that the code insight service is registered. Is it just not possible to access this service? Here you can see how the service is used:

@ExportAsService()
@Named("reportService")
public class ReportService {
    private static final Logger log = LoggerFactory.getLogger(ReportService.class);

    @BitbucketImport
    private InsightReportService insightReportService;

    @Autowired
    public ReportService(InsightReportService insightReportService) {
        log.debug("Report service constructor {}", insightReportService);
        this.insightReportService = insightReportService;

    }
}

Also the required imports are there:

<!-- Add package import here -->
                        <Import-Package>
                            org.springframework.osgi.*;resolution:="optional",
                            org.eclipse.gemini.blueprint.*;resolution:="optional",
                            com.atlassian.bitbucket.codeinsights.report.*,
                            *
                        </Import-Package>