public static StatisticsEvent createStatisticsEvent(double value, int type){
		StatisticsEvent event=null;

		switch(type){
		case 0: event= new StatisticsEvent(String.valueOf(++idCounter), 
				StatisticsEvent.USER_SESSIONTIME_MIN, 
				System.currentTimeMillis(),
				value);
		break;

		case 1: event= new StatisticsEvent(String.valueOf(++idCounter), 
				StatisticsEvent.USER_SESSIONTIME_MAX, 
				System.currentTimeMillis(),
				value);
		break;

		case 2: event= new StatisticsEvent(String.valueOf(++idCounter), 
				StatisticsEvent.USER_SESSIONTIME_AVERAGE, 
				System.currentTimeMillis(),
				value);
		break;

		case 3: event= new StatisticsEvent(String.valueOf(++idCounter), 
				StatisticsEvent.BID_COUNT_PER_MINUTE, 
				System.currentTimeMillis(),
				value);
		break;

		case 4: event= new StatisticsEvent(String.valueOf(++idCounter), 
				StatisticsEvent.BID_PRICE_MAX, 
				System.currentTimeMillis(),
				value);
		break;

		case 5: event= new StatisticsEvent(String.valueOf(++idCounter), 
				StatisticsEvent.AUCTION_SUCCESS_RATIO, 
				System.currentTimeMillis(),
				value);
		break;

		case 6: event= new StatisticsEvent(String.valueOf(++idCounter), 
				StatisticsEvent.AUCTION_TIME_AVERAGE, 
				System.currentTimeMillis(),
				value);
		break;
		}


		return event;
	}