getClassFromName correct implementation