def METHOD_NAME(self, name, attrs, content, ttFont):
    if not hasattr(self, "table"):
        self.table = otTables.avar()
    if not hasattr(self.table, "Reserved"):
        self.table.Reserved = 0
    if name == "version":
        self.majorVersion = safeEval(attrs["major"])
        self.minorVersion = safeEval(attrs["minor"])
        self.table.Version = (getattr(self, "majorVersion", 1) << 16) | getattr(
            self, "minorVersion", 0
        )
    elif name == "segment":
        axis = attrs["axis"]
        segment = self.segments[axis] = {}
        for element in content:
            if isinstance(element, tuple):
                elementName, elementAttrs, _ = element
                if elementName == "mapping":
                    fromValue = str2fl(elementAttrs["from"], 14)
                    toValue = str2fl(elementAttrs["to"], 14)
                    if fromValue in segment:
                        log.warning(
                            "duplicate entry for %s in axis '%s'", fromValue, axis
                        )
                    segment[fromValue] = toValue
    else:
        super().METHOD_NAME(name, attrs, content, ttFont)