code: public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
          final ResourceRoot deploymentRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT);
          final ModuleSpecification moduleSpecification = phaseContext.getDeploymentUnit().getAttachment(
                  Attachments.MODULE_SPECIFICATION);
          if(deploymentRoot == null)
              return;
          final ServicesAttachment servicesAttachments = phaseContext.getDeploymentUnit().getAttachment(Attachments.SERVICES);
          if(servicesAttachments != null && !servicesAttachments.getServiceImplementations(ServiceActivator.class.getName()).isEmpty()) {
              moduleSpecification.addSystemDependency(MSC_DEP);
          }
      }
docs: Add the dependencies if the deployment contains a service activator loader entry.
  @param phaseContext the deployment unit context
  @throws DeploymentUnitProcessingException