static ResponseList<Television> createTelevisionList(HttpResponse res, Configuration conf) throws FacebookException {
try {
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.clearThreadLocalMap();
}
JSONObject json = res.asJSONObject();
JSONArray list = json.getJSONArray("data");
final int size = list.length();
ResponseList<Television> televisions = new ResponseListImpl<Television>(size, json);
for (int i = 0; i < size; i++) {
JSONObject televisionJSONObject = list.getJSONObject(i);
Television television = new TelevisionJSONImpl(televisionJSONObject);
if (conf.isJSONStoreEnabled()) {
DataObjectFactoryUtil.registerJSONObject(television, televisionJSONObject);
}
televisions.add(television);