Using reflection to create map of packet types to methos