code: public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
          final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
          for (ResourceRoot resourceRoot : DeploymentUtils.allResourceRoots(deploymentUnit)) {
              ResourceRootIndexer.indexResourceRoot(resourceRoot);
          }
      }
docs: Process this deployment for annotations.  This will use an annotation indexer to create an index of all annotations
  found in this deployment and attach it to the deployment unit context.
  
  @param phaseContext the deployment unit context
  @throws DeploymentUnitProcessingException