new UnoverridingBeanFactory());
context.setServletContext(ctx);
prepareApplicationContext(context);
customizeBeanFactory(context.getDefaultListableBeanFactory());
createBeanDefinitionReader(context).loadBeanDefinitions(locations);
context.refresh();
return context;
} catch (Exception orig) {
for (Throwable loop = orig; loop != null; loop = loop.getCause()) {
if (loop instanceof SQLException) {
LOGGER.warning("Found a SQLException. Unrolling stacktrace.");