public static TicketType getTicketType(int type){
		for(TicketType tt : types){
			if(tt.type == type)
				return tt;
		}
		for(TicketType tt : types){
			if(tt == DEFAULT_TICKET_TYPE)
				return tt;
		}
		return DEFAULT_TICKET_TYPE;
	}