Check for self handling when getting class name.