please use self.get_registered(structname) instead