Is there a way to configure a user to be "invisble"?

AccountManager manager = conn.getAccountManager();

if (manager.supportsAccountCreation())

{

manager.createAccount(userName, password, attributes);

}

If I’'m creating a new account like above. Is there a way to configure this user to be “invisible”? That is to appear offline - even if another user has this user in their roster?

Thanks in advance!

Alex.

Ok I found out, its:

Presence p= new Presence(Presence.Type.AVAILABLE, “hello”, 5, Presence.Mode.INVISIBLE[/b]);

connection.sendPacket§;