code: public ChatMode getChatMode() {
  		final Presence.Mode mode = con.getRoster().getPresence(getUserId())
  				.getMode();
  		for (final ChatMode c : ChatMode.values()) {
  			if (c.mode == mode) {
  				return c;
  			}
  		}
  		return null;
  	}
docs: Returns the current ChatMode of this friend (e.g. away, busy, available).
  
  @see ChatMode
  @return ChatMode of this friend