}
String deployedName = deployedArtifacts.get(artifact);
//an artifact in mavenProject.getArtifacts() doesn't have the "optional" value as depMavenProject.getArtifact();
if (deployedName != null) {
IVirtualReference reference = ComponentCore.createReference(component, depComponent);
IPath path = new Path("/WEB-INF/lib"); //$NON-NLS-1$
reference.setArchiveName(deployedName);
reference.setRuntimePath(path);
references.add(reference);
}
}
IVirtualReference[] oldRefs = WTPProjectsUtil.extractHardReferences(component, false);