protected abstract String readContextPath();
protected String writeContextPath() {
return readContextPath();
}
public Future<Response> save() throws IOException {
<BUG>if (id != null) {
return asyncHttpClient.preparePut(capsuleUrl + "/api" + writeContextPath() + "/" + id)</BUG>
.addHeader("Content-Type", "application/xml")
<BUG>.setRealm(realm)
.setBody(xstream.toXML(this))</BUG>
.execute();

protected abstract String readContextPath();
protected String writeContextPath() {
return readContextPath();
}
public Future<Response> save() throws IOException {
if (id != null) {
System.out.println(xstream.toXML(this));
return asyncHttpClient.preparePut(capsuleUrl + "/api" + writeContextPath() + "/" + id)
.addHeader("Content-Type", "application/xml")
.setRealm(realm)
.setBodyEncoding("UTF-8")
.setBody(xstream.toXML(this))
.execute();
