Problem receiving extension data

I am implementing a xmpp extension to my application and I am using a javascript library to send the messages from client to client and the Smack library to intercept them in my server.

The client is sending the following presence:

MyNick

and the intercepted presence with smack looks like this:

the nick extension data is missing. The javascript clients receives the data, but the Java does not. What am I doing wrong?