AtomContent content = null;
if (requestObj != null) {
content = AtomContent.forEntry(DefaultConfigs.DOUBAN_XML_NAMESPACE, requestObj);
} else {
//Obviously the null content (proved) is not accecptable to Douban's API. Therefore, this empty obj is added for fooling Douban around, they don't care what's inside it anyway.
content = AtomContent.forEntry(DefaultConfigs.DOUBAN_XML_NAMESPACE, new DoubanUserObj());
}
HttpRequest method = requestFactory.buildPostRequest(new GenericUrl(url), content);
HttpResponse response = httpRequest(method, needAccessToken);
return response.getStatusCode();
}