}
final String[] jndiPrefixes = JndiUtil.getJndiPrefixes(jndiPrefixesValue) ;
Iterator<Extension> iter = getAddr().getExtensions();
while (iter.hasNext()) {
Extension extension = iter.next();
String tag = extension.getTag();
if(tag.equals(JMSEpr.MAX_SESSIONS_PER_CONNECTION) || tag.equals(JMSEpr.MAX_XA_SESSIONS_PER_CONNECTION)) {
properties.put(tag, extension.getValue());
} else if(tag.equals(JMSEpr.CLIENT_ID)) {
properties.put(tag, extension.getValue());
} else {
for(String jndiPrefix: jndiPrefixes)
{
if (tag.startsWith(jndiPrefix) && extension.getValue()!=null) {
properties.put(tag, extension.getValue());
break ;
}
}
}
}