public RoomInfo getByEvent(String value) throws ParseException {
		JSONParser parser = new JSONParser();
		//System.out.println(value);
		JSONObject obj = (JSONObject) parser.parse(value);
		JSONObject data = (JSONObject) obj.get("data");
		String event = (String) obj.get("event");
		String id_room = null;
		/**
		 * { "event": "eventName", "data" : { RoomInfo bean }}
		 */
		if (event.equals(NetworkMethod.ADD_ALL_MEMBERS))// event ==
														// NetworkMethod.ADD_ALL_MEMBERS
		{
			System.out.println(TAG+"event: "+NetworkMethod.ADD_ALL_MEMBERS+" data: "+data.toJSONString());

			add_all_members(data);
			id_room = (String) data.get("id_room");
					}

		/**
		 * { "event": "eventName", "data" : { "user": {user bean} } }
		 */
		else if (event.equals(NetworkMethod.CATCH_USER)) {
			updateUser(obj);
			id_room = (String) data.get("id_room");
		}

		
		/**
		 * { "event": "eventName", "data" : {user bean} }
		 */
		else if (event.equals(NetworkMethod.CREATE_ROOM))// 방장
		{
			createRoom(data);
			id_room = (String) data.get("id_room");
			System.out.println(TAG+"event: "+NetworkMethod.CREATE_ROOM+" data: "+data.toJSONString());
		}

		/**
		 * { "event": "eventName", "data" : {roomInfo bean} }
		 */
		else if (event.equals(NetworkMethod.DELETE_ROOM)) {
			deleteRoom(data);
			id_room = (String) data.get("id_room");
		}

		/**
		 * { "event": "eventName", "data" : {user bean} }
		 */
		else if (event.equals(NetworkMethod.IS_STARTED))//
		{
			id_room = (String) clientMap.get(data.get("id"));
			System.out.println(TAG+"event: "+NetworkMethod.IS_STARTED+" data: "+data.toJSONString());
			if(id_room==null)
				id_room="";
		}

		/**
		 * { "event": "eventName", "data" : {user bean} }
		 */
		else if (event.equals(NetworkMethod.UPDATE_POS)) {
			updatePosition(obj);
			id_room = (String) clientMap.get(data.get("id_room"));
		} else {
			System.out.println("ERROR: " + value);
		}

		return roomMap.get(id_room);
	}