Hmm, this does look fishy but unfortunately I am not really sure if there is a better way to do this. Because the endpoint publisher is used by clients external to the AS, and is loaded from the META-INF/services file there does not really appear to be any way to use dependencies here.