Map ancestors to strings before checking for ForbiddenAttributesProtection class