Bring Sample.java up to date with leap API

These changes allow it to compile once more