ReflectiveOperationException does not exist on Java 6