This is odd, it makes the parameter "knownTypes" unused, I do not think that this is correct.