/** * Instantiate and configure a bean * * @param config the confg * @param info the bean info * @param metaData the bean metadata * @return the instantiated and configured object * @throws Throwable for any error */ public static Object instantiateAndConfigure(KernelConfig config, BeanInfo info, BeanMetaData metaData) throws Throwable { Object result = instantiate(config, info, metaData); if (metaData != null) configure(result, info, metaData); return result; }