if (jid == null) throw new RosterException("jid not provided");
MutableRoster mutableRoster = (MutableRoster) retrieve(jid);
if (mutableRoster == null) {
mutableRoster = (MutableRoster) addNewRosterInternal(jid);
}
mutableRoster.addItem(rosterItem);
}
public RosterItem getContact(Entity jidUser, Entity jidContact) throws RosterException {
if (jidUser == null) throw new RosterException("jid not provided");
Roster roster = retrieve(jidUser);