});
consumers.add(consumer);
}
void removeConsumer(final StompConsumer consumer) {
connection.getDispatchQueue().execute(new Task() {
@Override
public void run() {
StompFrame frame = new StompFrame(UNSUBSCRIBE);
frame.addHeader(DESTINATION, StompFrame.encodeHeader(destination));
frame.addHeader(ID, consumer.id);