Resource resource = client.resource(baseURI);
setRequestHeaders(resource);
JAXBContext context = JAXBContext.newInstance(NewsStory.class);
StringWriter sw = new StringWriter();
context.createMarshaller().marshal(story, sw);
ClientResponse response = resource.contentType("text/xml").post(sw.toString().getBytes());
int status = response.getStatusCode();
Response resp = Response.status(status).build();
for (String key : response.getHeaders().keySet()) {
List<String> values = response.getHeaders().get(key);
List<Object> objValues = new ArrayList<Object>();