code: private static void doLoadSpringGroovyResources(RuntimeSpringConfiguration config, GrailsApplication application,
                                                      GenericApplicationContext context) {
          loadExternalSpringConfig(config, application);
          if (context != null) {
              springGroovyResourcesBeanBuilder.registerBeans(context);
          }
      }
docs: Attempt to load the beans defined by a BeanBuilder DSL closure in "resources.groovy".
  
  @param config
  @param context