Getting status message of friends in smack using gmail server

Hi all,

This is my first tryst with smack programming. I am trying to connect to gmail.com and retrieve the status messages of my friends…Here is the code i use

connection.connect();

connection.login(user,pass);

Roster roster=connection.getRoster();
for (RosterEntry entry : roster.getEntries() ){
System.out.println("User: "+entry.getUser());
System.out.println("Status: "+entry.getStatus());
Presence presence=roster.getPresence(entry.getUser());

        System.out.println(presence.getStatus());     
                       
    }

At this stage, presence.getStatus() always returns null… Is this normal?? Is there a standard way of getting the status messages (like “gone to lunch”) of my friends using smack ??

Thanks,

Palani.