Helper method that creates a singleton map.
Alternative for Collections.singletonMap(), since that method returns a
generic typed map depending on the input type, but we often need a
map.
Helper method to easily create a map.
Takes as input a varargs containing the key1, value1, key2, value2, etc.
Note: altough an Object, we will cast the key to String internally.