code: public static void writeProject(JSONWriter writer, Project project)
  			throws IllegalArgumentException, JSONException {
  		/* Validate project */
  		if (project.getName() == null)
  			throw new IllegalArgumentException(
  					"Project name must be set to create a new project");
  		if (project.getIdentifier() == null)
  			throw new IllegalArgumentException(
  					"Project identifier must be set to create a new project");
  
  		writeProject(project, writer);
  	}
docs: Writes a "create project" request.
  
  @param writer
  project writer.
  @param project
  project to create.
  @throws IllegalArgumentException
  if some project fields are not configured.
  @throws JSONException
  if IO error occurs.