protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		JSONObject jb = new JSONObject();
		String userId = request.getParameter("userId");
		String dateTimeInMillis = request.getParameter("dateTimeInMillis");
		dateToCheck.setTime(Long.parseLong(dateTimeInMillis));
		//String username = new String(request.getParameter("username").getBytes("ISO-8859-1"),"UTF-8"); 
		try{
			connection = new Mongo();
			scheduleDB = connection.getDB("schedule");
			eventCollection = scheduleDB.getCollection("event_" + userId);

			BasicDBObject eventCheckQuery = new BasicDBObject();
			BasicDBObject conditionOne = new BasicDBObject();
			BasicDBObject conditionTwo = new BasicDBObject();
			Calendar cal = Calendar.getInstance();
			cal.setTimeInMillis(dateToCheck.getTime());
			Date dateBegin = new Date();
			Date dateEnd = new Date();
			ArrayList<Boolean> hasEventArray = new ArrayList<Boolean>();
			for(int i = 0 ; i < 42 ; i++){
				dateBegin.setTime(cal.getTimeInMillis());
				conditionTwo.put("$gte", dateBegin);
				cal.roll(Calendar.DAY_OF_YEAR, true);
				dateEnd.setTime(cal.getTimeInMillis());
				conditionOne.put("$lte", dateEnd);
				
				eventCheckQuery.put("calFrom",conditionOne);
				eventCheckQuery.put("calTo",conditionTwo);
				DBCursor cur = eventCollection.find(eventCheckQuery);
				if(cur.hasNext()){
					hasEventArray.add(true);
				}else{
					hasEventArray.add(false);
				}
				
			}
			jb.put("result", Primitive.ACCEPT);
			jb.put("hasEventArray",hasEventArray);
			
		}catch(MongoException e){
			jb.put("result", Primitive.DBCONNECTIONERROR);
		   	e.printStackTrace();
		}
		PrintWriter writer = response.getWriter();
		writer.write(jb.toString());
		writer.flush();
		writer.close();
	}