}
VirtualFile appDir = baseDir.findFileByRelativePath(viewPath);
VirtualFile protectedPathDir = (!protectedPath.equals("")) ?
baseDir.findFileByRelativePath(protectedPath) : null;
if (appDir != null) {
PsiReference ref = new ViewsReference(controllerName, uri, element,
new TextRange(start, start + len), project, protectedPathDir, appDir);
return new PsiReference[]{ref};
}
}
return PsiReference.EMPTY_ARRAY;