CapabilityIndex index = projectMap.get(project);
if (index == null) {
index = new CapabilityIndex();
projectMap.put(project, index);
}
index.addResource(resource);
}
public Map<Requirement,Collection<Capability>> findProviders(Collection< ? extends Requirement> requirements) {
Map<Requirement,Collection<Capability>> result = new HashMap<Requirement,Collection<Capability>>();
for (Requirement requirement : requirements) {