public static Set<Emoticon> parseEmoteSet(JSONObject setData,String streamRestriction,Emoticon.SubType subType){
  try {
    JSONArray emoticons=(JSONArray)setData.get("emoticons");
    String title=JSONUtil.getString(setData,"title");
    return parseEmoticons(emoticons,streamRestriction,title,subType);
  }
 catch (  ClassCastException|NullPointerException ex) {
    LOGGER.warning("Error parsing FFZ emote set: " + ex);
  }
  return new HashSet<>();
}

public static Set < Emoticon > parseEmoteSet ( JSONObject setData , String streamRestriction , Emoticon . SubType subType ) { try { JSONArray emoticons = ( JSONArray ) setData . get ( "emoticons" ) ; String title = JSONUtil . getString ( setData , "title" ) ; return parseEmoticons ( emoticons , streamRestriction , title , subType ) ; } catch ( ClassCastException | NullPointerException ex ) { LOGGER . warning ( "Error parsing FFZ emote set: " + ex ) ; } return new HashSet < > ( ) ; }
parses a single emote set . emote set in this context is a set of emotes that users have access to either globally or in a single room .
