def METHOD_NAME(self, prefix, uri):
    if not uri:
        return
    # Jython uses '' instead of None; standardize on None
    prefix = prefix or None
    self.track_namespace(prefix, uri)
    if prefix and uri == "http://www.w3.org/1999/xlink":
        self.decls["xmlns:" + prefix] = uri