why not passing a class name and building the ReflectionClass internally ? ``addObjectResource`` expects an object, not a ReflectionObject