private void updateHeadersWithStaticHeaders(final MultiMap queueHeaders,final Map<String,String> staticHeaders){
  if (staticHeaders != null) {
    for (    Map.Entry<String,String> entry : staticHeaders.entrySet()) {
      String entryValue=entry.getValue();
      if (entryValue != null && entryValue.length() > 0) {
        queueHeaders.set(entry.getKey(),entry.getValue());
      }
 else {
        queueHeaders.remove(entry.getKey());
      }
    }
  }
}

private void updateHeadersWithStaticHeaders ( final MultiMap queueHeaders , final Map < String , String > staticHeaders ) { if ( staticHeaders != null ) { for ( Map . Entry < String , String > entry : staticHeaders . entrySet ( ) ) { String entryValue = entry . getValue ( ) ; if ( entryValue != null && entryValue . length ( ) > 0 ) { queueHeaders . set ( entry . getKey ( ) , entry . getValue ( ) ) ; } else { queueHeaders . remove ( entry . getKey ( ) ) ; } } } }
updates ( and overrides ) the given headers with the static headers ( if they are available ) .
