Update Gesture.java

The Gesture class is needs to return an instance of itself via a static method exposed in the API.