}
private void registerClassLoader(GlobalSettings globalSettings, ClassLoader classLoader, BeanContainer beanContainer) {
String classLoaderName = globalSettings.getClassLoaderName();
if (!DozerConstants.DEFAULT_CLASS_LOADER_BEAN.equals(classLoaderName)) {
DefaultClassLoader defaultClassLoader = new DefaultClassLoader(classLoader);
Class<? extends DozerClassLoader> classLoaderType = loadBeanType(classLoaderName, defaultClassLoader, DozerClassLoader.class);
DozerClassLoader classLoaderBean = ReflectionUtils.newInstance(classLoaderType);
beanContainer.setClassLoader(classLoaderBean);
}
}