Replaing Set to Map in TicketHandler