@POST
  @Consumes(MediaType.APPLICATION_JSON)
  public Response setDynamicConfigs(
      final CoordinatorDynamicConfig.Builder dynamicConfigBuilder,
      @HeaderParam(AuditManager.X_DRUID_AUTHOR) @DefaultValue("") final String author,
      @HeaderParam(AuditManager.X_DRUID_COMMENT) @DefaultValue("") final String comment,
      @Context HttpServletRequest req
  )
  {
    try {
      CoordinatorDynamicConfig current = CoordinatorDynamicConfig.current(manager);

      final SetResult setResult = manager.set(
          CoordinatorDynamicConfig.CONFIG_KEY,
          dynamicConfigBuilder.build(current),
          new AuditInfo(author, comment, req.getRemoteAddr())
      );

      if (setResult.isOk()) {
        return Response.ok().build();
      } else {
        return Response.status(Response.Status.BAD_REQUEST)
                       .entity(ServletResourceUtils.sanitizeException(setResult.getException()))
                       .build();
      }
    }
    catch (IllegalArgumentException e) {
      return Response.status(Response.Status.BAD_REQUEST)
                     .entity(ServletResourceUtils.sanitizeException(e))
                     .build();
    }
  }
@ POST @ Consumes ( MediaType . APPLICATION_JSON ) public Response setDynamicConfigs ( final CoordinatorDynamicConfig . Builder dynamicConfigBuilder , @ HeaderParam ( AuditManager . X_DRUID_AUTHOR ) @ DefaultValue ( "" ) final String author , @ HeaderParam ( AuditManager . X_DRUID_COMMENT ) @ DefaultValue ( "" ) final String comment , @ Context HttpServletRequest req ) { try { CoordinatorDynamicConfig current = CoordinatorDynamicConfig . current ( manager ) ; final SetResult setResult = manager . set ( CoordinatorDynamicConfig . CONFIG_KEY , dynamicConfigBuilder . build ( current ) , new AuditInfo ( author , comment , req . getRemoteAddr ( ) ) ) ; if ( setResult . isOk ( ) ) { return Response . ok ( ) . build ( ) ; } else { return Response . status ( Response . Status . BAD_REQUEST ) . entity ( ServletResourceUtils . sanitizeException ( setResult . getException ( ) ) ) . build ( ) ; } } catch ( IllegalArgumentException e ) { return Response . status ( Response . Status . BAD_REQUEST ) . entity ( ServletResourceUtils . sanitizeException ( e ) ) . build ( ) ; } }
default value is used for backwards compatibility