gwt emulation for class hasAnnotation.