src/main/java/org/fuin/srcgen4j/core/velocity/ParameterizedTemplateModel.java
public final boolean hasReferenceTo(final File templateDir, final File templateFile) {
        final String p1 = Utils4J.getCanonicalPath(new File(templateDir, template));
        final String p2 = Utils4J.getCanonicalPath(templateFile);
        return p1.equals(p2);
    }
public final boolean hasReferenceTo(final File templateDir, final File templateFile) {
        final String p1 = Utils4J.getCanonicalPath(new File(templateDir, template));
        final String p2 = Utils4J.getCanonicalPath(templateFile);
        return p1.equals(p2);
    }
Checks if this model has a reference to the given template file.

@param templateDir
Directory where all template files are located - Cannot be NULL.
@param templateFile
Template file to check - Cannot be NULL.

@return If the template is referenced TRUE else FALSE.