Add get_object_class() function for role transition rules.