How to write gateway using smack?

I tried jabberbeans library and resolved it don’'t supports jabber disco protocol extensions.

Not sure how to write a gateway, but we do support disco.

-Matt