code: public static void addService(ServerEnvironment serverEnvironment, ServiceTarget target) {
          target.addService(SERVICE_NAME, new ServerEnvironmentService(serverEnvironment))
              .install();
      }
docs: Adds a ServerEnvironmentService based on the given {@code serverEnvironment}
  to the given batch under name {@link #SERVICE_NAME}.
  
  @param serverEnvironment the {@code ServerEnvironment}. Cannot be {@code null}
  @param target the batch builder. Cannot be {@code null}