'Refit (normalize) the attribute.
@param a: An attribute.
@type a: L{Attribute}'

def refitAddr(self, a):

    if (a.prefix is not None):
        ns = a.namespace()
        if self.permit(ns):
            a.prefix = self.prefixes[ns[1]]
    self.refitValue(a)
