public static void addHeaders(BoundRequestBuilder builder,
            Map<String, String> headerMap) {
        for (Entry<String, String> entry : headerMap.entrySet()) {
            String name = entry.getKey();
            String value = entry.getValue();
            builder.addHeader(name, value);
        }

    }
public static void addHeaders ( BoundRequestBuilder builder , Map < String , String > headerMap ) { for ( Entry < String , String > entry : headerMap . entrySet ( ) ) { String name = entry . getKey ( ) ; String value = entry . getValue ( ) ; builder . addHeader ( name , value ) ; } }
Adds the headers.

@param builder
the builder
@param headerMap
the header map