this.localResource = proj;
this.localUser = user;
this.downloadDirectory = downloaddir;
containerID = container.getID();
presenceContainer = new PresenceContainer(this, container, localUser);
presenceContainer.addMessageListener(new IIMMessageListener() {
public void handleMessageEvent(IIMMessageEvent messageEvent) {
if (messageEvent instanceof IChatMessageEvent) {
handleChatMessageEvent((IChatMessageEvent) messageEvent);
}