code: @GET
      public Response getStatus() {
          String uri = getUriInfo().getRequestUri().toString();
          uri = (uri.endsWith("/") ? uri : uri + "/") + "ui";
          final Response redirect = Response.status(Status.FOUND).location(java.net.URI.create(uri))
                  .build();
          throw new WebApplicationException(redirect);
      }
docs: private static final Pattern NIF_OFFSET_PATTERN = Pattern.compile("char=(\\d+),(\\d+)");