public static ImmutableMap < String , Object > prepareArguments ( String [ ] params , Object [ ] values ) { ImmutableMap . Builder < String , Object > builder = ImmutableMap . builder ( ) ; for ( int i = 0 ; i < params . length ; i ++ ) { if ( ! StringUtils . isBlank ( params [ i ] ) && ( values [ i ] != null ) ) { builder . put ( params [ i ] , values [ i ] ) ; } } return builder . build ( ) ; }
Prepares collection of arguments .