*/
public synchronized void refreshAvatarInUse(ViewCell viewCell, boolean isLocal) {
// Once the avatar loader is ready and the primary view has been set,
// we tell the avatar cell component to set it's avatar in use.
AvatarConfigComponent configComponent = viewCell.getComponent(AvatarConfigComponent.class);
AvatarRegistry registry = AvatarRegistry.getAvatarRegistry();
AvatarSPI avatar = registry.getAvatarInUse();
if (avatar != null) {
ServerSessionManager session = viewCell.getCellCache().getSession().getSessionManager();
AvatarConfigInfo configInfo = avatar.getAvatarConfigInfo(session);
configComponent.requestAvatarConfigInfo(configInfo, isLocal);
}
}