docs: public AuthorizationEntity[] newDeployment(Deployment deployment) {
      ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();
      IdentityService identityService = processEngineConfiguration.getIdentityService();
      Authentication currentAuthentication = identityService.getCurrentAuthentication();
  
      if (currentAuthentication != null && currentAuthentication.getUserId() != null) {
        String userId = currentAuthentication.getUserId();
        String deploymentId = deployment.getId();
        AuthorizationEntity authorization = createGrantAuthorization(userId, null, DEPLOYMENT, deploymentId, READ, DELETE);
        return new AuthorizationEntity[]{ authorization };
      }
  
      return null;
    }