code: private String getReqValue(Map<String, String[]> map, String key) {
  
          return map.get(key) != null ? map.get(key)[0] : null;
      }
docs: Returns the first value of the array for the given key.<p>
  
  @param map the map to search the key in
  @param key the key to get the first value from
  
  @return the first value of the array for the given key