String resolverClassName = params
.get(DefinitionsFactory.LOCALE_RESOLVER_IMPL_PROPERTY);
if (resolverClassName != null) {
localeResolver = (LocaleResolver) ClassUtil.instantiate(resolverClassName);
} else {
localeResolver = new DefaultLocaleResolver();
}
localeResolver.init(params);
definitions = readDefinitions();
}