rem: "page-title" : "Add User: Profile", 
add: "page-title" : "Add User", 
context: function add_user(ldap) {	resolve();	try {			var userId = "";				var ldapId = null;		if (ldap) {			ldapId = "";		}				var email = "";		var fullName = "";		var description = "";		var messages = new Packages.java.util.ArrayList();		var password = "";		var confirmPassword = "";		var userManager = getAccreditableManager().getUserManager();				while (true) {			cocoon.sendPageAndWait("users/profile.xml", {				"page-title" : "Add User: Profile",				"user-id" : userId,		    	"fullname" : fullName,		    	"email" : email,		    	"description" : description,		    	"messages" : messages,		    	"ldap-id" : ldapId,	    		"password" : password,	    		"confirm-password" : confirmPassword,	    		"new-user" : true,	    		"ldap" : ldap			});					    if (cocoon.request.get("cancel")) {		    	break;		    }		    			userId = cocoon.request.get("userid");			email = cocoon.request.get("email");			fullName = cocoon.request.get("fullname");			description = cocoon.request.get("description");			ldapId = cocoon.request.get("ldapid");			password = cocoon.request.get("new-password");			confirmPassword = cocoon.request.get("confirm-password");						var configDir = userManager.getConfigurationDirectory();			messages = validate(userManager, ldap, userId, email, password, confirmPassword, ldapId, configDir);						if (messages.isEmpty()) {				var user;				if (ldap) {					user = new Packages.org.apache.lenya.ac.ldap.LDAPUser(configDir, userId, email, ldapId);				}				else {					user = new Packages.org.apache.lenya.ac.file.FileUser(configDir, userId, fullName, email, "");					user.setName(fullName);					user.setPassword(password);				}								user.setDescription(description);				user.save();				userManager.add(user);				break;			}		}	   	cocoon.sendPage("redirect.html", { "url" : "../users.html" });   	}   	finally {   		release();   	}}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/a476328e3a3c89db11a8f618dae6ccea5be48162/user-admin.js/buggy/src/webapp/lenya/content/admin/users/user-admin.js