Hmm, `instanceof` doesn't work that way, you can't test for a class name as a string, you have o pass the actual constructor.