code: public Collection<String> getSamplesOrOpenSources() {
          Collection<String> samplesOrOpenSources = new ArrayList<String>();
          Map<String, List<List<RepositoryResource>>> installResources = getResolveDirector().getInstallResources();
          if (installResources != null) {
              for (List<List<RepositoryResource>> targetList : installResources.values()) {
                  for (List<RepositoryResource> mrList : targetList) {
                      for (RepositoryResource mr : mrList) {
                          ResourceType type = mr.getType();
                          if (type.equals(ResourceType.PRODUCTSAMPLE) ||
                              type.equals(ResourceType.OPENSOURCE)) {
                              samplesOrOpenSources.add(InstallUtils.getResourceId(mr));
                          }
                      }
                  }
              }
          }
          return samplesOrOpenSources;
      }
docs: Creates a collection of Sample and Open Source resource names from install resource
  
  @return Collections of Strings of resource names