don't use obsolete getResource JID's method