code: static void addCommitStep(final OperationContext context, final ConfigurationPersistence configurationPersistence) {
          // This should only check that it's a server for the commit step. The logging.properties may need to be written
          // in ADMIN_ONLY mode
          if (context.getProcessType().isServer()) {
              context.addStep(new CommitOperationStepHandler(configurationPersistence), Stage.RUNTIME);
          }
      }
docs: Adds a {@link Stage#RUNTIME runtime} step to the context that will commit or rollback any logging changes. Also
  if not a logging profile writes the {@code logging.properties} file.
  <p>
  Note the commit step will only be added if process type is a
  {@linkplain org.jboss.as.controller.ProcessType#isServer() server}.
  </p>
  
  @param context                  the context to add the step to
  @param configurationPersistence the configuration to commit