use odl versions as in rest.client
config.setMediaType(MediaType.APPLICATION_XML_TYPE);
using json caused exceptions