public ELContext getELContext()
{
if (mElContext == null)
{
Application app = getApplication();
mElContext = new PortletELContextImpl(app.getELResolver());
mElContext.putContext(FacesContext.class, this);
UIViewRoot root = getViewRoot();
if (null != root)
{
mElContext.setLocale(root.getLocale());