community.setMetadata("name", name);
community.setMetadata("short_description", shortDescription);
community.setMetadata("copyright_text", copyrightText);
community.setMetadata("side_bar_text", sidebarText);
community.setMetadata("introductory_text", introductoryText);
community.update();
} else {
throw new EntityException("Internal server error", "Could not update community", 500);
}
} catch (SQLException ex) {
throw new EntityException("Internal server error", "SQL error", 500);