public RestResponse update(String token) throws IOException {
//TODO insecure ssl hack
HttpClient httpClient = new DefaultHttpClient();
SSLSocketFactory sf = (SSLSocketFactory)httpClient.getConnectionManager()
.getSchemeRegistry().getScheme("https").getSocketFactory();
sf.setHostnameVerifier(new AllowAllHostnameVerifier());
HttpPut request = new HttpPut(Application.baseRestUrl + "/communities/" + this.id);
request.setHeader("Accept", "application/json");
request.addHeader("Content-Type", "application/json");
request.addHeader("rest-dspace-token", token);