// only do this after we know the AvatarConfigComponent is on the View
// Cell. We therefore add a listener, but also check immediately whether
// the component exists. The handleSetAvatar() method makes sure that
// the call to refresh() only happens once.
isAvatarSet = false;
newViewCell.addComponentChangeListener(new ComponentChangeListener() {
public void componentChanged(Cell cell, ChangeType type,
CellComponent component) {
AvatarConfigComponent c =
cell.getComponent(AvatarConfigComponent.class);
if (type == ChangeType.ADDED && c != null) {