}
private void addHeaderIfAnnotationPresentOnMethod(Multimap<String, String> headers, Invocation invocation,
Multimap<String, ?> tokenValues) {
if (invocation.getInvokable().getOwnerType().getRawType().isAnnotationPresent(Headers.class)) {
Headers header = invocation.getInvokable().getOwnerType().getRawType().getAnnotation(Headers.class);
addHeader(headers, header, tokenValues);
}
if (invocation.getInvokable().isAnnotationPresent(Headers.class)) {
Headers header = invocation.getInvokable().getAnnotation(Headers.class);
addHeader(headers, header, tokenValues);
}
}