code: public Collection<ProductResource> getMatchingAddons(ProductDefinition definition) throws RepositoryBackendException {
          @SuppressWarnings("unchecked")
          Collection<ProductResourceImpl> addonList = (Collection<ProductResourceImpl>) getAllResources(ResourceType.ADDON);
          Collection<ProductResource> matchedAddons = new ArrayList<ProductResource>();
          for (ProductResourceImpl addon : addonList) {
              if (addon.matches(definition) == MatchResult.MATCHED) {
                  matchedAddons.add(addon);
              }
          }
          return matchedAddons;
      }
docs: This will obtain the addons from the repository that match the specified product definition
  
  @param definition The product definition to match against
  @return Returns a Collection of {@link ProductResourceImpl} objects that represent the addons that match the product
  definition supplied
  @throws RepositoryBackendException If there was a problem connecting to the repository