code: private boolean isInPaths(final CmsResource resource) {
  
          boolean result = false;
          String resourcePath = getCms().getSitePath(resource);
          for (String path : m_paths) {
              if (resourcePath.startsWith(path)) {
                  result = true;
                  break;
              }
          }
          return result;
  
      }
docs: Checks if the resource is in the selected path.<p>
  
  @param resource the resource to check
  
  @return true, if the resource is in the selected path, otherwise false