code: private boolean isApplicable(RepositoryResource resource) {
          if (resource instanceof ApplicableToProduct) {
              if (((ApplicableToProduct) resource).getAppliesTo() == null) {
                  return true; // No appliesTo -> applicable
              }
          }
          return ((RepositoryResourceImpl) resource).doesResourceMatch(productDefinitions, null);
      }
docs: Return whether the given resource is applicable to the current product definitions.
  
  @param resource the repository resource
  @return {@code true} if the resource is applicable, otherwise {@code false}