code: public static void configureGenerator(UriInfo uriInfo, JsonGenerator generator, boolean isDev) {
          MultivaluedMap<String, String> params = uriInfo.getQueryParameters();
          String pretty = params.getFirst("pretty");
          if ("false".equalsIgnoreCase(pretty)) {
              generator.setPrettyPrinter(null);
          } else if (pretty != null && !"false".equalsIgnoreCase(pretty) || isDev) {
              generator.useDefaultPrettyPrinter();
          }
          String unicode = params.getFirst("unicode");
          if (unicode != null && !"false".equalsIgnoreCase(unicode)) {
              generator.enable(JsonGenerator.Feature.ESCAPE_NON_ASCII);
          }
      }
docs: <p>configureGenerator.</p>
  
  @param uriInfo   a {@link javax.ws.rs.core.UriInfo} object.
  @param generator a {@link com.fasterxml.jackson.core.JsonGenerator} object.
  @param isDev     a boolean.