String configName = toInitialise.getConfigName();
String configFile = toInitialise.getConfigFile();
log.debug("Create new config [name=" + configName + ",file=" + configFile + "]");
JBossWSConfigFactory factory = JBossWSConfigFactory.newInstance();
List<RMPortConfig> rmPortMetaData = null;
if (base != null)
{
rmPortMetaData = backupRMMD(base.getConfig());
}
CommonConfig config = factory.getConfig(getRootFile(), configName, configFile);
propagateRMMD(rmPortMetaData, config);
toInitialise.setConfig(config);
toInitialise.configHandlerMetaData();
}