Optimization on queues and moving classes to hornetq-tools