Fixing Sonar reported issues.
Fixing Sonar & suggestions of the code review.
lazy loading of the publisher has been encapsulated in PublisherBase.
Merge pull request #27 from kdchamil/master

Sonar reported issues reduced to zero. Code review suggestions implemented.