private static Header[] mapToHeaderArray(final Map<String, String> mapHeaders) {
    Header[] headers = new Header[mapHeaders.size()];
    int i = 0;
    for (Map.Entry<String, String> headerEntry : mapHeaders.entrySet()) {
      headers[i++] = new BasicHeader(headerEntry.getKey(), headerEntry.getValue());
    }
    return headers;
  }
private static Header [ ] mapToHeaderArray ( final Map < String , String > mapHeaders ) { Header [ ] headers = new Header [ mapHeaders . size ( ) ] ; int i = 0 ; for ( Map . Entry < String , String > headerEntry : mapHeaders . entrySet ( ) ) { headers [ i ++ ] = new BasicHeader ( headerEntry . getKey ( ) , headerEntry . getValue ( ) ) ; } return headers ; }
@param mapHeaders Map of header entries
@return modeled Header objects