Changed to use getClassName() as preferable fix for #152