class RestResendClient implements ResendClient {

    @Override
    public boolean makeResendRequest(final String targetUrl, final ResendRequest request) {
        final Entity<ResendRequest> outboundEntity = Entity.entity(request, MediaType.APPLICATION_JSON);

        try (Response response = client.target(targetUrl).path("/resend").request().post(outboundEntity)) {
            return Response.Status.OK.getStatusCode() == response.getStatus();
        }
    }

    public  RestResendClient(final Client client);

}