Using PlatformTransactionManager

I’m trying to get a reference to PTM as described here

However, the plugin cannot be enable due to error.

[INFO] [talledLocalContainer] 2019-11-07 15:02:20,029 ERROR [localhost-startStop-1] [plugin.osgi.factory.OsgiPlugin] logAndClearOustandingDependencies Plugin 'com.example.plugin' never resolved service '&platformTransactionManager' with filter '(objectClass=org.springframework.transaction.PlatformTransactionManager)'

I’ve added a component import to atlassian.plugin.xml

<component-import key="platformTransactionManager" interface="org.springframework.transaction.PlatformTransactionManager" name="Confluence Spring Platform Transaction Manager"/>

Any ideas?