//This code launch the first animation finded on the first model
//TODO : play with animation API
switch (message.getAnimation()) {
case SWING_ARM:
Model model = models.getModels().get(0);//get first model
if (model == null) {
return;
}
if (model.getAnimations() == null || model.getAnimations().isEmpty()) {
return;
}
Animation animation = model.getAnimations().values().iterator().next();
animations.playAnimation(model, animation);
break;
default: