if (ObjectHelper.isNotEmpty(key)) {
if (LOG.isDebugEnabled()) {
LOG.debug("Joining: {} using {} with key {}", new Object[]{channel, connection.getClass().getName(), key});
}
connection.doJoin(channel, key);
} else {
if (LOG.isDebugEnabled()) {
LOG.debug("Joining: {} using {}", channel, connection.getClass().getName());
}
connection.doJoin(channel);