public static boolean excludePath(String path) {
        String[] excludePatterns = SiteProperties.getExcludePatterns();
        if (ArrayUtils.isNotEmpty(excludePatterns)) {
            return RegexUtils.matchesAny(path, excludePatterns);
        } else {
            return false;
        }
    }
public static boolean excludePath ( String path ) { String [ ] excludePatterns = SiteProperties . getExcludePatterns ( ) ; if ( ArrayUtils . isNotEmpty ( excludePatterns ) ) { return RegexUtils . matchesAny ( path , excludePatterns ) ; } else { return false ; } }
Returns true if the path should be excluded or ignored for targeting.

@param path  the path

@return true if the path should be excluded