if (connectorConfig != null)
{
requesterBuilder.setConfig(connectorConfig);
}
HttpRequester httpRequester = requesterBuilder.build();
// Do not throw exception on invalid status code, let CXF process it.
httpRequester.setStatusCodeValidator(new SuccessStatusCodeValidator("0..599"));
httpRequester.initialise();
return httpRequester;
}