Extending OfflineMessageStore functionality ,How can i do?

hi,everyone!

I’'ve made some modifications in the OfflineMessageStore class that lets me store the offlinemessage to the redis/mongodb.

Is there a better way? Such as don’t modify the openfire source code?

thanks!

every one?