def METHOD_NAME(self, residue):
    """Add a residue object and use its resname as key.
    Arguments:
     - residue - Residue object
    """
    resname = residue.get_resname()
    # add chain parent to residue
    chain = self.get_parent()
    residue.set_parent(chain)
    assert not self.disordered_has_id(resname)
    self[resname] = residue
    self.disordered_select(resname)