protected ConfigurationBuilder getBuilder() throws Exception
{
String configResources = getConfigResources();
if (configResources != null)
{
return new SpringXmlConfigurationBuilder(configResources);
}
configResources = getConfigFile();
if (configResources != null)
{
if (configResources.contains(","))
{
throw new RuntimeException("Do not use this method when the config is composed of several files. Use getConfigFiles method instead.");
}
return new SpringXmlConfigurationBuilder(configResources);
}
String[] multipleConfigResources = getConfigFiles();
return new SpringXmlConfigurationBuilder(multipleConfigResources);
}