[JBWS-3735] Revisiting EndpointPublisherImpl to allow running the process in 3 steps: prepare, deploy, publish. This allows setting proper service dependencies when running in-service (prevents XTS from getting stuck at boot)
[JBWS-3735] Refactoring