s/getResourcepart().isEmpty()/isBareJid()/ [EOM]