if (resourceExists == null)
{
ViewDeclarationLanguage vdl = context.getApplication().getViewHandler().getViewDeclarationLanguage(context, viewId);
if (vdl != null)
{
resourceExists = vdl.viewExists(context, viewId);
}
else
{
// Fallback to default strategy
resourceExists = context.getExternalContext().getResource(