OptaPlanner snippet modified.