String action = gestureMap.get(event.getActionCommand());
logger.info("playing animation: " + event.getActionCommand());
if (action.equals("Sit")) {
doSitGesture(avatar);
} else if (action.equals("RightWink")) {
CharacterEyes eyes = avatar.getEyes();
eyes.wink(false);
} else {
avatar.playAnimation(action);
}
}
});