How can we register a new account programmatically using Whack API?

I want to write code in java to register an account with some username and password. i can do this using socket and IQ stanza.

can someone help me in doing this using Whack library.

Plz point me to some links if you can.