@SuppressWarnings("unchecked") public static Map createMap(Object... args){
  Map result=new LinkedHashMap();
  if (args == null || args.length == 0)   return result;
  for (int i=0; i < args.length - 1; i+=2)   result.put(args[i],args[i + 1]);
  return result;
}

@ SuppressWarnings ( "unchecked" ) public static Map createMap ( Object ... args ) { Map result = new LinkedHashMap ( ) ; if ( args == null || args . length == 0 ) return result ; for ( int i = 0 ; i < args . length - 1 ; i += 2 ) result . put ( args [ i ] , args [ i + 1 ] ) ; return result ; }
strings at even index are keys , odd - index strings are values in the returned map
