protected Map<String,Object> convertNamedListToMap(NamedList<?> args){
  Map<String,Object> argsMap=new LinkedHashMap<>();
  if (args != null) {
    for (    Map.Entry<String,?> entry : args) {
      argsMap.put(entry.getKey(),entry.getValue());
    }
  }
  return argsMap;
}

protected Map < String , Object > convertNamedListToMap ( NamedList < ? > args ) { Map < String , Object > argsMap = new LinkedHashMap < > ( ) ; if ( args != null ) { for ( Map . Entry < String , ? > entry : args ) { argsMap . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } } return argsMap ; }
converts a namedlist & lt ; ? & gt ; into an ordered map for returning as json .
