EDREI-11753: Adapted Java example for V3.
EDREI-11753: Java example ready for review.

Removed SBT and added gradle instead. The dependencies to rest have been updated. Adaption of the resource paths and XML according to V3.