s/getResourcepart().isEmpty()/isBareJid()/
Merge pull request #644 from SamWhited/barejidchecks

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