this (headers, null, null);
}
public ClientWrapper(final Map<String, String> headers, String userName, String password) {
realClient = JerseyClientFactory.newClient(new ClientConfig().
binders(new MultiPartClientBinder(), new JettisonBinder()));
realClient.configuration().register(new CsrfProtectionFilter());
if ((userName != null) && (password != null)) {
realClient.configuration().register(new HttpBasicAuthFilter(userName, password));
}
realClient.configuration().register(new ClientRequestFilter() {