public Directory getDeploymentStructure() {
Directory composite = new DirectoryRoot();
for (IVirtualArtifactDeployment depl : this.deployments) {
if (depl.getDeploymentStructure() instanceof IVirtualDirectory) {
composite.link((IVirtualDirectory) depl.getDeploymentStructure());
} else {
composite.link((IVirtualFile) depl.getDeploymentStructure(), depl.getDeploymentStructure().getName());
}
}
return composite;