Add java task: gesture recognition.