contextPathStrategy = context.containsBean(CONTEXT_PATH_STRATEGY_NAME) ? (ContextPathStrategy) context.getBean(
CONTEXT_PATH_STRATEGY_NAME, ContextPathStrategy.class)
: createDefaultContextPathStrategy();
// extender properties using the defaults as backup
if (context.containsBean(PROPERTIES_NAME)) {
Properties customProperties = (Properties) context.getBean(PROPERTIES_NAME, Properties.class);
Enumeration propertyKey = customProperties.propertyNames();
while (propertyKey.hasMoreElements()) {
String property = (String) propertyKey.nextElement();
properties.setProperty(property, customProperties.getProperty(property));