"The ability to discover information about entities on the Jabber network is extremely valuable."
Currently there exists the incoming Service Discovery, that is, the incoming data is parsed and server side services/features are listed.
This functionality needs to be extended so that the library will respond to any query made by the other party.
Available in XMPPConnection
While it will reveal all the enabled extensions, it might not be needed, and not too secure in that way.
For to make it "perfect", extensions need to be handled differently.