Form<Community> filledForm = form(Community.class).bindFromRequest("name", "copyrightText", "introductoryText", "shortDescription", "sidebarText");
if(filledForm.hasErrors()){
return badRequest(views.html.community.edit.render(user, filledForm, "Edit Comm", "", ""));
}
Community editCommunity = filledForm.get();
//Determine if the edited community is changed from original. i.e. don't update unless necessary
RestResponse originalCommunityResponse = Community.findByID(id);
Community originalCommunity = null;
if(originalCommunityResponse.modelObject instanceof Community) {
originalCommunity = (Community) originalCommunityResponse.modelObject;
}
if(editCommunity.equals(originalCommunity)) {