/** * Returns if the given path starts with an exclude prefix.<p> * * @param cms the cms context * @param path the path to check * * @return <code>true</code> if the given path starts with an exclude prefix */ protected boolean isExcluded(CmsObject cms, String path) { List<String> excludes = getExcludes(cms); // now check if the current link start with one of the exclude links for (int i = 0; i < excludes.size(); i++) { if (path.startsWith(excludes.get(i))) { return true; } } return false; }