changes after code-review: changed parameters in publish(), added publishHub() and removed $results->error left only $results->success and $results->errorMsg
Merge branch 'bugid-98050' into consumer-sprint30-bugid-96419