if(map.get(consumerId) != null) {
String s = "consumer '" + consumerId + "' already registered " +
"for destination '" + destination + "'";
throw new JMSException(s);
}
Element root = Element.NULL;
if(messageSelector != null) {
try {
root = Query.parse(messageSelector);
} catch(java.text.ParseException ex) {
log.error("invalid Query: " + messageSelector, ex);