VirtualFile virtualFile = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot();
Manifest manifest = deploymentUnit.getAttachment(Attachments.OSGI_MANIFEST);
if (manifest == null)
return;
try {
<BUG>String contextName = deploymentUnit.getName();
ServiceRegistry serviceRegistry = phaseContext.getServiceRegistry();
Deployment holderdep = DeploymentHolderService.getDeployment(serviceRegistry, contextName);
String location = holderdep != null ? holderdep.getLocation() : contextName;
info = BundleInfo.createBundleInfo(AbstractVFS.adapt(virtualFile), location);
</BUG>
BundleInfoAttachment.attachBundleInfo(deploymentUnit, info);

VirtualFile virtualFile = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT).getRoot();
Manifest manifest = deploymentUnit.getAttachment(Attachments.OSGI_MANIFEST);
if (manifest == null)
return;
try {
info = BundleInfo.createBundleInfo(AbstractVFS.adapt(virtualFile), contextName);
BundleInfoAttachment.attachBundleInfo(deploymentUnit, info);
