code: public Friend getFriendById(String xmppAddress) {
  		final RosterEntry entry = connection.getRoster().getEntry(
  				StringUtils.parseBareAddress(xmppAddress));
  		if (entry != null) {
  			return new Friend(this, connection, entry);
  		}
  		return null;
  	}
docs: Gets a friend based on his XMPPAddress.
  
  @param xmppAddress
  For example sum12345678@pvp.net
  @return The corresponding Friend or null if user is not found or he is
  not a friend of you.