preInit(s, properties);
// check for property providers
if (this.beanFactory != null && this.beanFactory.containsBean(PropertyProvider.ROLE) ) {
try {
final PropertyProvider provider = (PropertyProvider) this.beanFactory.getBean(PropertyProvider.ROLE);
final Properties providedProperties = provider.getProperties(s, mode, this.getNameForPropertyProvider());
if (providedProperties != null) {
properties.putAll(providedProperties);
}
} catch (Exception ignore) {
this.logger.warn("Unable to get properties from provider.", ignore);