code: private boolean isExcluded(File file) {
  
          ArrayList<Pattern> excludes = OpenCms.getWorkplaceManager().getSynchronizeExcludePatterns();
          for (Pattern pattern : excludes) {
              if (pattern.matcher(file.getName()).find()) {
                  m_report.print(
                      org.opencms.report.Messages.get().container(
                          org.opencms.report.Messages.RPT_SUCCESSION_1,
                          String.valueOf(m_count++)),
                      I_CmsReport.FORMAT_NOTE);
                  m_report.print(Messages.get().container(Messages.RPT_EXCLUDING_0), I_CmsReport.FORMAT_NOTE);
                  m_report.println(
                      org.opencms.report.Messages.get().container(
                          org.opencms.report.Messages.RPT_ARGUMENT_1,
                          file.getAbsolutePath().replace("\\", "/")));
  
                  return true;
              }
          }
          return false;
      }
docs: Determine if this file is to be excluded.<p>
  
  @param file the file to check
  
  @return <code>true</code> if the file should be excluded from synchronization