code: function(loc, projectName, serverPath, create) {
  			if (!loc) { // null, undefined, '' ...
  				// window.document.eas.status.setErrorMessage("<enter message here>");
  				console.error("url is undefined, make sure you're signed in before creating a project");
  				return;
  			}
  			var data = {
  				Name: projectName,
  				Directory: true
  			};
  			if (serverPath) {
  				data.ContentLocation = serverPath;
  			}
  			if (create) {
  				data.CreateIfDoesntExist = create;
  			}
  			return _xhr("POST", loc, {
  				headers: {
  					"Orion-Version": "1",
  					"Content-Type": "application/json;charset=UTF-8"
  				},
  				timeout: 15000,
  				data: JSON.stringify(data)
  			}).then(function(result) {
  				return result.response ? JSON.parse(result.response) : null;
  			}).then(function(result) {
  				if (this.makeAbsolute) {
  					_normalizeLocations(result);
  				}
  				return result;
  			}.bind(this));
  		}
docs: Adds a project to a workspace.
  @param {String} loc The workspace location
  @param {String} projectName the human-readable name of the project
  @param {String} serverPath The optional path of the project on the server.
  @param {Boolean} create If true, the project is created on the server file system if it doesn't already exist