BeanWriter beanWriter = beanWriterClass.newInstance();
Configurator.configure(beanWriter, config, appContext);
getBeanWriters(beanClass, appContext).put(config.getSelectorNamespaceURI(), beanWriter);
} catch (InstantiationException e) {
throw new SmooksConfigurationException("Unable to create BeanWriter instance.", e);
} catch (IllegalAccessException e) {
throw new SmooksConfigurationException("Unable to create BeanWriter instance.", e);
}
}