Fixed for GWT, can't use Class#isInstance(Object)