Fix demo build

The demo wasn't building, because of my previous changes to some APIs.

I didn't notice this earlier, because `mvn package` wasn't complaining. Only after I did a `mvn clean` followed by `mvn package` I noticed this problem.