In which case is this code compiled, since it should not be possible to call `Factory::getInstance` at all?