LOG.error("Skipping empty message {}", message.getId());
}
}
private void processImages(ImageEvent event) {
Image imageFromEvent = event.getImage();
<BUG>Optional<Image> imageOrEmpty = imagesAware.getImage(imageFromEvent.getId());
if (imageOrEmpty.isPresent()) {</BUG>
Image image = imageOrEmpty.get();
ImageEvent currentState = imageToEvent(image);
<BUG>Yatomata<ImageFSM> fsm = fsmBuilderAware.get(ImageFSM.class).build(currentState);
LOG.debug(</BUG>
"Updating image {} ({}) from state = {} to state = {}",

LOG.error("Skipping empty message {}", message.getId());
}
}
private void processImages(ImageEvent event) {
Image imageFromEvent = event.getImage();
Optional<Image> imageOrEmpty = imagesAware.getImage(imageFromEvent.getId());
ImageFSM fsmInstance = applicationContext.getBean(ImageFSM.class);
if (imageOrEmpty.isPresent()) {
Image image = imageOrEmpty.get();
ImageEvent currentState = imageToEvent(image);
Yatomata<ImageFSM> fsm = new FSMBuilder<>(fsmInstance).build(currentState);
LOG.debug(
"Updating image {} ({}) from state = {} to state = {}",
