class RestfulClientInvoker extends ClientInvoker {

    public RestfulClientInvoker(ResteasyWebTarget parent, Class<?> declaring, Method method, ProxyConfig config) {
        super(parent, declaring, method, config);
    }

    public Object invoke(Object[] args, Request req, RestfulClientResponse resp) {<FILL_FUNCTION_BODY>}

    protected ClientInvocation createRequest(Object[] args, Request request) {
        ClientInvocation inv = super.createRequest(args);
        RestfulUtil.encodeAttachments(inv.getHeaders().getHeaders(), request.getAttachments());
        return inv;
    }

}

        ClientInvocation request = createRequest(args, req);
        ClientResponse response = (ClientResponse) request.invoke();
        resp.setAttachments(RestfulUtil.decodeAttachments(response.getStringHeaders()));
        resp.setHttpResponse(response);

        ClientContext context = new ClientContext(request, response, entityExtractorFactory);
        return extractor.extractEntity(context);
    
<no_super_class>