private static Client createClient() {
Client c = JerseyClientBuilder.newClient();
c.register(new MultiPartFeature())
.register(new CsrfProtectionFilter("CLI"))
.register(new ActionReportJsonReader())
.register(new ParameterMapFormWriter())
.register(new PayloadPartProvider())
.register(new AdminCommandStateJsonReader())
.register(new ProgressStatusDTOJsonReader())
.register(new ProgressStatusEventJsonReader())
.register(GfSseEventReceiverReader.class); //Must be managed (it uses injection)