{%- if proxy.wire_writers.is_empty() %}
{%- include "render_java/proxy_sync_method_invoke.txt" %}
{%- else %}
            try (
{%- for writer in proxy.wire_writers %}
                WireWriter {{ writer.binding_name }} = new WireWriter({{ writer.size_expr }}){% if !loop.last %};{% endif %}
{%- endfor %}
            ) {
{%- for writer in proxy.wire_writers %}
                {{ writer.encode_expr }};
{%- endfor %}
{%- include "render_java/proxy_sync_method_invoke.txt" %}
            }
{%- endif %}
