tlabpp = new TLABPostProcessor(); tlabpp.setMappingContext(smc); tlabpp.setApplicationContext(blankcontext);
  public void init() {    // at this point we actually expect that the "Dead" factory is FULLY    // CREATED. This checks that all dependencies are resolvable (if this    // has not already been checked by the IDE).    String[] beanNames = blankcontext.getBeanDefinitionNames();    ConfigurableListableBeanFactory factory = blankcontext.getBeanFactory();    // prepare our list of dependencies.    rbimap = new HashMap();    lazysources = new StringList();    fallbacks = new StringList();    aliasMap = new HashMap();    RBIBeanDefConverter converter = new RBIBeanDefConverter(factory, smc);    for (int i = 0; i < beanNames.length; i++) {      String beanname = beanNames[i];      BeanDefinition beandef = factory.getBeanDefinition(beanname);      try {        converter.convertBeanDef(beandef, beanname, false);      }      catch (Exception e) {        Logger.log.error("Error loading definition for bean " + beanname, e);      }    }    for (int i = 0; i < converter.rbilist.size(); ++i) {      RSACBeanInfo rbi = (RSACBeanInfo) converter.rbilist.get(i);      String beanname = rbi.beanname;      rbimap.put(beanname, rbi);      for (int j = 0; j < rbi.aliases.length; ++j) {        aliasMap.put(rbi.aliases[j], beanname);      }    }    // Make a last-ditch attempt to infer bean types.    for (int i = 0; i < converter.rbilist.size(); ++i) {      RSACBeanInfo rbi = (RSACBeanInfo) converter.rbilist.get(i);      String beanname = rbi.beanname;      if (rbi.beanclass == null) {        rbi.beanclass = getBeanClass(beanname);      }      if (rbi.beanclass != null) {        if (rbi.islazyinit) {          lazysources.add(beanname);        }        if (FallbackBeanLocator.class.isAssignableFrom(rbi.beanclass)            && !rbi.isabstract) {          fallbacks.add(beanname);        }        rbi.isfactorybean = FactoryBean.class.isAssignableFrom(rbi.beanclass);      }    }    BracketerPopulator.populateBracketers(parentcontext, rbimap);  }