code: static ResponseList<Friendship> createFriendshipList(HttpResponse res, Configuration conf) throws TwitterException {
          try {
              if (conf.isJSONStoreEnabled()) {
                  TwitterObjectFactory.clearThreadLocalMap();
              }
              JSONArray list = res.asJSONArray();
              int size = list.length();
              ResponseList<Friendship> friendshipList = new ResponseListImpl<Friendship>(size, res);
              for (int i = 0; i < size; i++) {
                  JSONObject json = list.getJSONObject(i);
                  Friendship friendship = new FriendshipJSONImpl(json);
                  if (conf.isJSONStoreEnabled()) {
                      TwitterObjectFactory.registerJSONObject(friendship, json);
                  }
                  friendshipList.add(friendship);
              }
              if (conf.isJSONStoreEnabled()) {
                  TwitterObjectFactory.registerJSONObject(friendshipList, list);
              }
              return friendshipList;
          } catch (JSONException jsone) {
              throw new TwitterException(jsone);
          }
      }
docs: /*package