public void link(IVirtualArtifactDeployment deployment, boolean circular) {
if (this == deployment) return;
if (this.linkedContext == null) this.createLinkedContext(this.getDeployer().getDeploymentClassLoader());
if (!this.linked.containsKey(this.createUniqueId(deployment.getDeployed()))) {
this.linked.put(this.createUniqueId(deployment.getDeployed()), new LinkedDeployment(circular, this, deployment));
if (circular) deployment.link(this, false);
}
}