code: public static <K, V> Map<K, V> newHashMap(Object... args) {
          Map<K, V> m = new HashMap<K, V>();
          for (int i = 0; i < args.length; i += 2) {
              m.put((K) args[i], i + 1 >= args.length ? null : (V) args[i + 1]);
          }
          return m;
      }
docs: Create map from array (must contains even elements count name1,value1,name2,value2...)
  if contains odd elements - last will be null
  
  @param args
  @return