Made ServicePublisher work with several resource bases (i.e. contexts)