@SuppressWarnings({ "unused", "unchecked" })
  private static void rewriteMergeData(String key, String subKey,
      NamedList<Object> snl, NamedList<Object> tnl) {
    if (snl != null) {
      Object o = tnl.get(key);
      NamedList<Object> tnnnl;
      if (o != null && o instanceof NamedList) {
        tnnnl = (NamedList<Object>) o;
      } else {
        tnnnl = new SimpleOrderedMap<>();
        tnl.add(key, tnnnl);
      }
      tnnnl.add(subKey, snl);
    }
  }
@ SuppressWarnings ( { "unused" , "unchecked" } ) private static void rewriteMergeData ( String key , String subKey , NamedList < Object > snl , NamedList < Object > tnl ) { if ( snl != null ) { Object o = tnl . get ( key ) ; NamedList < Object > tnnnl ; if ( o != null && o instanceof NamedList ) { tnnnl = ( NamedList < Object > ) o ; } else { tnnnl = new SimpleOrderedMap < > ( ) ; tnl . add ( key , tnnnl ) ; } tnnnl . add ( subKey , snl ) ; } }
Rewrite merge data.

@param key the key
@param subKey the sub key
@param snl the snl
@param tnl the tnl