textPanel.setText("Congratulations, you achieved the next level!");
} else {
textPanel.setText("Let's try an easier level!");
}
GenericContentExecutable changeLevelExecutable = new GenericContentExecutable();
changeLevelExecutable.addContent(Region.CENTER, textPanel);
changeLevelExecutable.setDisplayDuration(duration);
Misc.getOutcomeProperty().setValue(changeLevelExecutable, ExecutionOutcome.SKIP);
TemporaryElementSupport support = TemporaryElementSupportUtil.getInstance().findTemporaryElementSupport(context);
if (support != null) {
ExecutableElement element = new ExecutableElement(changeLevelExecutable);