final HTTPRequest req = this.createRequest("/projects/" + project + "/versions.json");
req.header(WSConstants.HEADER_CONTENT_TYPE, Redmine.APPLICATION_JSON);
final HttpResponse put = req.body(body).post();
if (!WS.isStatusOK(put)) {
this.log.error(WS.getResponseAsString(put));
throw new RedmineException(Redmine.STATUS_CHANGE_FAILED);
}
} catch (final Exception e) {
e.printStackTrace();
throw new RedmineException(Redmine.STATUS_CHANGE_FAILED, e);
}
}