Update Gesture.java

The Gesture class needs to return an instance of itself exposed in the API.