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