rem: else if (!Packages.org.apache.lenya.cms.ac.AbstractItem.isValidId(groupId)) { message = "This is not a valid group ID."; } else { var configDir = groupManager.getConfigurationDirectory(); var group = new Packages.org.apache.lenya.cms.ac.FileGroup(configDir, groupId); group.setName(name); group.setDescription(description); group.save(); groupManager.add(group); break; } } sendPage("redirect.html", { "url" : "../groups.html" }); 
add: cocoon.sendPage("redirect.html", { "url" : "../groups.html" }); } finally { release(); } 
context: function group_add_group() {    var groupManager = getGroupManager();	var groupId = "";	var name = "";	var description = "";	var message = "";		while (true) {		sendPageAndWait("groups/profile.xml", {			"page-title" : "Add Group",			"group-id" : groupId,	    	"name" : name,	    	"description" : description,	    	"message" : message,	    	"new-group" : true		});			    if (cocoon.request.get("cancel")) {	    	break;	    }	    		message = "";		groupId = cocoon.request.get("group-id");		name = cocoon.request.get("name");		description = cocoon.request.get("description");				var existingGroup = groupManager.getGroup(groupId);		if (existingGroup != null) {			message = "This group already exists.";		}		else if (!Packages.org.apache.lenya.cms.ac.AbstractItem.isValidId(groupId)) {          	message = "This is not a valid group ID.";		}		else {			var configDir = groupManager.getConfigurationDirectory();			var group = new Packages.org.apache.lenya.cms.ac.FileGroup(configDir, groupId);			group.setName(name);			group.setDescription(description);			group.save();			groupManager.add(group);			break;		}	}   	sendPage("redirect.html", { "url" : "../groups.html" });}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/b05dc7bed680626a70f8a3bbaa117c3fe4aa02de/group-admin.js/clean/src/webapp/lenya/content/admin/groups/group-admin.js