Convert OSGi Publisher to new API and to ensure it works for local and
remote

Further work on converting osgi publisher

 Convert OSGi Publisher to new API and to ensure it works for local and remote

 Convert OSGi Publisher to new API and to ensure it works for local and remote

 Convert OSGi Publisher to new API and to ensure it works for local and remote