{
// Only administrators and adders can create communities
if (!(AuthorizeManager.isAdmin(context) || AuthorizeManager
.authorizeActionBoolean(context, parent, Constants.ADD)))
{
throw new AuthorizeException(
"Only administrators can create communities");
}
TableRow row = DatabaseManager.create(context, "community");
Community c = new Community(context, row);