Managing HipChat Integration from BB add-on

We are developing BitBucket add-on, which for every BB project creates a HC room and then links every newly created project repository with that HC room.

Is there a way to manage links from repositories to rooms (content of “/plugins/servlet/hipchat/configure” page) in Java code of the add-on? There is a private REST API http://localhost:7990/bitbucket/rest/hipchat-integrations/1.0/projects/{projectKey}/repos/{repositorySlug}/rooms/{roomId}. However using BitBucket REST from its own add-on feels wrong. I’ve been look for a class like HipChatIntegrationService, but failed to find anything like this.

I tried to base the code on com.atlassian.bitbucket.internal.hipchat.notification.configuration.rest.NotificationConfigurationResource. The relevant fragments are below.

{
@ComponentImport
private NotificationConfigurationService notificationConfigService;

@ComponentImport
private NotificationTypeService notificationTypeService;

private void enableHipchatNotifications(String roomId, Repository repository) {
    Iterable<NotificationType> notificationTypes = this.notificationTypeService.getAll();
    NotificationEnableRequest request = (new NotificationEnableRequest.Builder()).roomId(roomId).repository(repository).notificationTypes(notificationTypes).build();
    this.notificationConfigService.enable(request);
}
}

However now add-on fails to start due to
ERROR [spring-startup] c.a.plugin.osgi.factory.OsgiPlugin Detected an error (BundleException) enabling the plugin 'org.xxx.cbs.bitbucket.xxx-bitbucket-plugin' : Unresolved constraint in bundle org.xxx.cbs.bitbucket.xxx-bitbucket-plugin [127]: Unable to resolve 127.0: missing requirement [127.0] osgi.wiring.package; (osgi.wiring.package=com.atlassian.bitbucket.internal.hipchat.notification.configuration). This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn't meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see https://developer.atlassian.com/x/mQAN

Can you recommend how to resolve this one?