/* 205 */ log.debug("using connection factory: " + factory);
/* 206 */ log.debug("using username/password: " + String.valueOf(username) + "/-- not shown --");
/* */
/* 210 */ if ((factory instanceof XATopicConnectionFactory))
/* */ {
/* 212 */ XATopicConnectionFactory tFactory = (XATopicConnectionFactory)factory;
/* */ TopicConnection connection;
/* */ TopicConnection connection;
/* 213 */ if (username != null)
/* 214 */ connection = tFactory.createXATopicConnection(username, password);
/* */ else {
/* 216 */ connection = tFactory.createXATopicConnection();
/* */ }
/* 218 */ log.debug("created XATopicConnection: " + connection);
/* */ }
/* 220 */ else if ((factory instanceof TopicConnectionFactory))
/* */ {
/* 222 */ TopicConnectionFactory tFactory = (TopicConnectionFactory)factory;
/* */ TopicConnection connection;
/* */ TopicConnection connection;
/* 223 */ if (username != null)
/* 224 */ connection = tFactory.createTopicConnection(username, password);
/* */ else {
/* 226 */ connection = tFactory.createTopicConnection();
/* */ }
/* 228 */ log.debug("created TopicConnection: " + connection);
/* */ }
/* */ else {
/* 231 */ throw new IllegalArgumentException("factory is invalid");