try {
Thread.sleep(100);
} catch (InterruptedException ex) {
LOGGER.warning("Sleep failed.");
}
avatar.triggerActionStop(trigger);
}
};
// Spawn a thread to start the animation, which then spawns a thread
// to stop the animation after a small sleep.