final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
final String contextName = deploymentUnit.getName();
final ServiceRegistry serviceRegistry = phaseContext.getServiceRegistry();
// Check if we already have a BundleInfo
BundleInfo info = BundleInfoAttachment.getBundleInfo(deploymentUnit);
ServiceController<Deployment> deploymentController = DeploymentHolderService.getDeployment(serviceRegistry, contextName);
if (info != null || deploymentController != null)
return;
// Get the manifest from the deployment's virtual file