// First reset target resource to whatever the server says it is
resetTargetResource(originalTarget, serverData);
addNewRemoteMember(originalTarget, null);
final ECFConnection conn = getECFConnection();
accountManager.setConnection(conn.getXMPPConnection());
chatRoomManager.setConnection(getConnectNamespace(),
originalTarget, conn);
searchManager.setConnection(getConnectNamespace(), originalTarget,
conn);
searchManager.setEnabled(!isGoogle(originalTarget));
presenceHelper.setUser(new User(originalTarget));
outgoingFileTransferContainerAdapter.setConnection(conn
.getXMPPConnection());
return originalTarget;
} else
throw new ConnectException(