Example #1
0
 /**
  * Returns the feature identified by the method parameter. The feature can be in any of the
  * presences of the friend.
  *
  * <p>This was done to get around implementing adding/removing features on objects (such as xmpp
  * connections and friends) other than FriendPresences
  *
  * @param feature desired feature's URI
  * @return {@link Feature}
  */
 private Feature getFeature(URI feature) {
   for (FriendPresence presence : chatFriend.getFriend().getPresences().values()) {
     if (presence.hasFeatures(feature)) {
       return presence.getFeature(feature);
     }
   }
   return null;
 }