code: @SuppressWarnings("unchecked")
      public MessagingConfiguration getMessagingConfiguration(ServletConfig servletConfig) {
          Assert.isTrue(JdkVersion.getMajorJavaVersion() >= JdkVersion.JAVA_15, "Spring BlazeDS Integration requires a minimum of Java 1.5");
          Assert.notNull(servletConfig, "FlexConfigurationManager requires a non-null ServletConfig - "
              + "Is it being used outside a WebApplicationContext?");
  
          MessagingConfiguration configuration = new MessagingConfiguration();
  
          configuration.getSecuritySettings().setServerInfo(servletConfig.getServletContext().getServerInfo());
  
          if (CollectionUtils.isEmpty(configuration.getSecuritySettings().getLoginCommands())) {
              LoginCommandSettings settings = new LoginCommandSettings();
              settings.setClassName(NoOpLoginCommand.class.getName());
              configuration.getSecuritySettings().getLoginCommands().put(LoginCommandSettings.SERVER_MATCH_OVERRIDE, settings);
          }
  
          if (this.parser == null) {
              this.parser = getDefaultConfigurationParser();
          }
  
          Assert.notNull(this.parser, "Unable to create a parser to load Flex messaging configuration.");
  
          this.parser.parse(this.configurationPath, new ResourceResolverAdapter(this.resourceLoader), configuration);
  
          return configuration;
      }
docs: Parses the BlazeDS config files and returns a populated MessagingConfiguration
  
  @param servletConfig the servlet config for the web application