cfg.postProcessBeanFactory(factory);
} catch (BeansException e) {
throw new PropertyProcessingFailureException(e, prototype, name);
}
Connector connector = null;
try {
connector = (Connector) context.getBean(factory, null, Connector.class);
} catch (BeansException e) {
throw new BeanInstantiationFailureException(e, prototype, name,
Connector.class.getName());