JMS and refactoring