code: private void addHandler(final Animation animation, final Annotation annotation) throws CoreException {
  
          // Build the auto event handler for this annotation
          final AnnotationEventHandler<ActionEvent> aeh = new AnnotationEventHandler<>(this.callbackObject, annotation);
          // Only on event type
          animation.setOnFinished(aeh);
  
      }
docs: Add an event handler on the given animation according to annotation OnFinished.
  
  @param animation the animation, must be not null
  @param annotation the OnXxxx annotation (only OnFinished is supported)
  
  @throws CoreException if an error occurred while linking the event handler