Java sealed classes and exhaustive pattern matching | Flume