sessionContext.setInitiatingEntity(client);
boundResourceId = sessionContext.bindResource();
sessionContext.getServerRuntimeContext().getResourceRegistry().setResourceState(boundResourceId,
ResourceState.CONNECTED);
rosterManager = new MemoryRosterManager();
OpenStorageProviderRegistry storageProviderRegistry = new OpenStorageProviderRegistry();
storageProviderRegistry.add(rosterManager);
((DefaultServerRuntimeContext) sessionContext.getServerRuntimeContext())
.setStorageProviderRegistry(storageProviderRegistry);
handler = new RosterIQHandler();
}