instance.getProperties().put(
ClientConfig.PROPERTY_FOLLOW_REDIRECTS, false);
try {
instance.getSingletons().add(
new ODataEntityProvider());
instance.getSingletons().add(
new ODataEntityCollectionProvider());
instance.getSingletons().add(
new MediaContentProvider());
} catch (JAXBException e) {