Need Help to Add multi-domain support (Virtual Domains)

Recently i have started using Openfire.

Everything is so good about this software, but the only thing which is missing for me, is multi-domain support.

I saw bug report and discussion on http://issues.igniterealtime.org/browse/OF-162. It seems it is not very easy to implement. But i need this feature.

So, i am trying to implement it, but i need help from you guys to understand the architecture and way to proceed (I mean i need to know if it can be done using plugins or i need to change core of openfire?)

Please help me with the pointers to start with.

Thanks in advance.