@Deprecated private List<Object> nameValueMapToList(Map.Entry<String,? extends T>[] nameValuePairs){
  List<Object> result=new ArrayList<>();
  for (  Map.Entry<String,?> ent : nameValuePairs) {
    result.add(ent.getKey());
    result.add(ent.getValue());
  }
  return result;
}

@ Deprecated private List < Object > nameValueMapToList ( Map . Entry < String , ? extends T > [ ] nameValuePairs ) { List < Object > result = new ArrayList < > ( ) ; for ( Map . Entry < String , ? > ent : nameValuePairs ) { result . add ( ent . getKey ( ) ) ; result . add ( ent . getValue ( ) ) ; } return result ; }
method to serialize map . entry & lt ; string , ? & gt ; to a list in which the even indexed elements ( 0 , 2 , 4 . . . etc ) are strings and odd elements ( 1 , 3 , 5 , ) are of the type " t " .
