private IHyperlink getTemplateLink(ViewPath viewPath, IRegion wordRegion) {

    IScriptFolder folder =
        SymfonyModelAccess.getDefault()
            .findBundleFolder(viewPath.getBundle(), input.getScriptProject());

    if (folder == null) {
      Logger.debugMSG("Unable to resolve template link: " + viewPath);
      return null;
    }

    String path = "Resources/views/";

    if (viewPath.getController() != null) {
      path += viewPath.getController() + "/";
    }

    path += viewPath.getTemplate();
    ISourceModule module = folder.getSourceModule(path);

    if (module != null) {
      return new ModelElementHyperlink(wordRegion, module, new OpenAction(editor));
    }

    return null;
  }