NXP-13972: avoid static use in PublisherServiceImpl
NXP-13977: detach session from doc comment before closing it