}
<BUG>public void addDescriptors(String pid, Map<String, ArtifactIdentity> newDescriptors){
</BUG>
if(descriptors.get(pid) == null){
<BUG>descriptors.put(pid, new HashMap<String, ArtifactIdentity>());
</BUG>
}
descriptors.get(pid).putAll(newDescriptors);
<BUG>}
public ArtifactIdentity removeDescriptor(String pid, String fd){
</BUG>
if(descriptors.get(pid) == null){

}
descriptors.get(pid).put(fd, artifactInfo);
}
public void addDescriptors(String pid, Map<String, ArtifactIdentifier> newDescriptors){
if(descriptors.get(pid) == null){
descriptors.put(pid, new HashMap<String, ArtifactIdentifier>());
}
descriptors.get(pid).putAll(newDescriptors);
}
public void removeDescriptorsOf(String pid){
descriptors.remove(pid);
}
public ArtifactIdentifier removeDescriptor(String pid, String fd){
if(descriptors.get(pid) == null){
