String configStr = getConfig(stack_name);
if (configStr == null)
throw new IllegalStateException("Unknown stack_name " + stack_name);
ProtocolStackConfigurator config = ConfiguratorFactory.getStackConfigurator(configStr);
Map<String, String> tpProps = getTransportProperties(config);
if (!tpProps.containsKey(Global.SINGLETON_NAME))
{
if (addMissingSingletonName)
{
String singletonName = UNSHARED_TRANSPORT_NAME_BASE + stack_name;
log.warn("Config for " + stack_name + " does not include " +
"singleton_name; adding a name of " + singletonName +
". You should configure a singleton_name for this stack.");
config = addSingletonName(config, singletonName);
log.debug("Stack config after adding singleton_name is " + config.getProtocolStackString());
tpProps = getTransportProperties(config);
}
else
{
throw new IllegalStateException("Config for " + stack_name + " does not include " +