How to register a new DiscoInfoProvider

I’'m currently trying to play with Wildfire and create a plugin.

This plugin needs to register a new disco#info feature. I guess I have to implement my own DiscoInfoProvider, but I can’'t find a clear way to register this provider into the server.

My question is why does the IQDiscoInfoHandler (which is retrieved using XMPPServer.getInstance().getIQDiscoInfoHandler()) has its method setProvider(String name, DiscoInfoProvider provider) protected ?

This means that if I want to set a new provider, I have to write my own class implementing IQDiscoInfoHandler … and so how do I load this new handler onto the xmpp server?

I’'m a bit confused on how things work in Wildfire, I wish you can help me…