Fix usage of ReflectiveOperationException