{
//TODO (INF-1214): (not thread safe)
communities.remove(communityIndex);
person.setModified(new Date());
DbManager.getSocial().getPerson().update(personQuery.toDb(), person.toDb());
rp.setData(person, new PersonPojoApiMap());
rp.setResponse(new ResponseObject("Remove community status",true,"Community removed successfully."));
}
else
{
rp.setResponse(new ResponseObject("Remove community status",true,"Person is not a member of the specified community."));