WebTarget webTarget = client.target(getBaseURL() + annotation.value());
final Map<String, String> headers = getHeaders(clazz, method);
if (!headers.isEmpty()) {
webTarget.register(new HeaderFilter(headers));
}
JerseyWebTarget jerseyWebTarget = (JerseyWebTarget) webTarget;
if (WebTarget.class.isAssignableFrom(clazz)) {
value = jerseyWebTarget;
} else {
final Class<?> parameterType;
try {