modified printWorkItemHandler() function to include WIH mappings from SessionConfiguration