ResourceState currentState = registry.getResourceState(resourceId);
if (currentState != null) {
registry.setResourceState(resourceId, ResourceState.makeInterested(currentState));
}
Roster roster = null;
try {
roster = rosterManager.retrieve(from.getBareJID());
if (roster == null) return handleCannotRetrieveRoster(stanza, sessionContext);
} catch (RosterException e) {
return handleCannotRetrieveRoster(stanza, sessionContext);