added Java driver example query