Updated sample to recent java and PIT versions