Userservice plugin question

Hi

I have deployed userservice plugin on openfire server. I found there is one issue of userservice plugin.

When a user is deleted over HTTP request, the user is deleted. But the roster information is still there.

I am going to add :

RosterManager rosterManager;

in the plugin class, and invoke:

rosterManager.deleteRoster(JID user) ;

Is this the correct way to do?

regards

peter