@Override
	public JSONObject main(Map<String, String> params, Session session)
			throws Exception {
		// TODO capacity
		JSONObject rtn = new JSONObject();
		String name = params.get("name");
		int capacity = Integer.parseInt(params.get("capacity"));
		Venue venue = Venue.findOne("name", name);
		if(venue != null) {
			rtn.put("rtnCode", this.getRtnCode(201));
		}
		else {
			venue = Venue.create(name, capacity);
			rtn.put("rtnCode", this.getRtnCode(200));
		}
		
		rtn.put("venue", venue.toJson());
		
		return rtn;
	}