public static Map < String , Object > with ( Object ... params ) { Map < String , Object > map = new HashMap <> ( ) ; for ( int i = 0 ; i < params . length ; i ++ ) { map . put ( String . valueOf ( i ) , params [ i ] ) ; } return map ; }
Convenience wrapper for message parameters