I'm trying to create a custom search plugin for Confluence.
Long story short:
How do I define search plugin in atlassian-plugin.xml? This doesn't work:
<search-decorator key="promoteContentCreatorSearchDecorator"
class="com.confluence.plugins.PromoteContentCreatorSearchDecorator"
weight="100"/>
I get my module always disabled:

Long story long:
I found this guide and I like it quite a lot but it is only applicable for Confluence 7. While we still on Confluence 6.12
So I found this one as well and everything seems fine except my module does not start after installing addon. I assume that is because of the way it is described in module description (see above). What is the right way to do that?