docs: public void undeploy(final DeploymentUnit deploymentUnit) {
          final ExtensionInfo extensionInfo = deploymentUnit.getAttachment(Attachments.EXTENSION_INFORMATION);
          if (extensionInfo == null) {
              return;
          }
          // we need to remove the extension on undeploy
          final ServiceController<?> extensionIndexController = deploymentUnit.getServiceRegistry().getRequiredService(
                  Services.JBOSS_DEPLOYMENT_EXTENSION_INDEX);
          final ExtensionIndex extensionIndexService = (ExtensionIndex) extensionIndexController.getValue();
          final ModuleIdentifier moduleIdentifier = deploymentUnit.getAttachment(Attachments.MODULE_IDENTIFIER);
  
          extensionIndexService.removeDeployedExtension(extensionInfo.getName(), moduleIdentifier);
  
      }