private ViewCreateResponseMessage createAvatar(WonderlandClientSender sender,
WonderlandClientID clientID,
CellHierarchyMessage msg) {
UserMO user = WonderlandContext.getUserManager().getUser(clientID);
AvatarCellMO avatar = user.getAvatar(clientID, msg.getViewID());
if (avatar == null) {
user.getReference().getForUpdate(); // Mark for update
avatar = new AvatarCellMO(user, clientID);
viewID = msg.getViewID();
user.putAvatar(clientID, viewID, avatar);
}
// Set the properties for this connection in the cell cache
avatar.getCellCache().setConnectionProperties(connectionProperties);
avatar.getCellCache().login(sender, clientID);
return new ViewCreateResponseMessage(msg.getMessageID(), avatar.getCellID());
}