Added example of using Java code from scala