public RequestPattern build() {
RequestPattern requestPattern = new RequestPattern();
requestPattern.setMethod(method);
urlMatchingStrategy.contributeTo(requestPattern);
for (Map.Entry<String, ValueMatchingStrategy> header: headers.entrySet()) {
requestPattern.addHeader(header.getKey(), header.getValue().asValuePattern());
}
for (String key: withoutHeaders) {
requestPattern.addHeader(key, ValuePattern.absent());
}