refactored jms container to make it more extensible