How to use a custom SASL mechanism using smack client instead of using the default SASL mechanism

Hi All, I have a very basic question in smack . I am using the latest version of smack .With the previous versions I can see we could add support for SASL mechanisms in the SASLAuthentication class. But the recent version of SASLAuthentication doesnt have any such method like that. All the code snippets available online are with the previous versions of SMACK .Npthing seems to be the latest version .

Can anyone advice me with something

I want to do something like this :

android - XMPP with Java Asmack library supporting X-FACEBOOK-PLATFORM - Stack Overflow

I want to prepare my custom SASL Merchanism and register for that mechanism using the XMPPConnection.

But all this seems to be using the preious libraries of SMack

Just look at the source how SALS mechanisms are registered.