NEXUS-7518-component-id-service

https://issues.sonatype.org/browse/NEXUS-7518
Remember to add `@Named @Singleton` if you want to be able to inject this elsewhere.