How can i get the resourcepart of a user?

when i use the FileTransferManager.createOutgoingFileTransfer(),its tip i need the EntityFullJid, but id don’t know how get the Resourcepart from my target user.What should i do to get it?

Besides getting the full JID out-of-band, you usually get it via presence subscription to the remote entity.