if (!argumentFilterInstance.isUnsatisfied())
{
argumentFilter = argumentFilterInstance.get();
}
MessageContext result = defaultMessageContext.config()
.use()
.localeResolver(createJsfAwareLocaleResolver())
.messageResolver(new JsfAwareApplicationMessagesMessageResolver())
.messageInterpolator(new FacesMessageInterpolator(elProvider, argumentFilter))
.addMessageHandler(new JsfAwareMessageHandler())
.create();
if (messageFactory != null)
{
return DefaultMessageContext.create(result.config(), messageFactory);
}
return result;
}