private static void insertValueUsingIfNotEmpty(final Map<String,List<String>> paramsMap,final String paramVal,final String parameterName){
  if (StringUtils.isNotEmpty(paramVal)) {
    List<String> list=new ArrayList<>();
    list.add(paramVal);
    paramsMap.put(parameterName,list);
  }
}

private static void insertValueUsingIfNotEmpty ( final Map < String , List < String > > paramsMap , final String paramVal , final String parameterName ) { if ( StringUtils . isNotEmpty ( paramVal ) ) { List < String > list = new ArrayList < > ( ) ; list . add ( paramVal ) ; paramsMap . put ( parameterName , list ) ; } }
puts the given parameter value into a new list object then adds it to the map .
