BaseWebModuleLoader moduleLoader = new BaseWebModuleLoader(){
@Override
protected void doHandleRefresh(
String applicationId,
ConfigurableApplicationContext context, ModuleDefinition moduleDefinition) {
throw new RuntimeException();
}
};
moduleLoader.setServletContext(servletContext);
moduleLoader.setWebAttributeQualifier(webAttributeQualifier);