*/
public static ModuleComponentConfigurationLoader getConfigurationLoader(SystemAggregateContext systemContext, AssemblyModelContext modelContext) throws ConfigurationException {
if (useStax) {
// Bootstrap the StAX loader module
bootstrapStaxLoader(systemContext, modelContext);
return new StAXModuleComponentConfigurationLoaderImpl(modelContext, XMLInputFactory.newInstance(), systemContext.resolveInstance(StAXLoaderRegistry.class));
} else {
return new ModuleComponentConfigurationLoaderImpl(modelContext);
}
}