code: @Path("confirm")
      @GET
      @Produces({ MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN })
      @SuppressWarnings("checkstyle:illegalcatch")
      public Response confirm()
      {
          Response ret = null;
          try {
              final Context context = Context.getThreadContext();
              final ContextReply reply = new ContextReply()
                              .setUserName(context.getPerson().getName())
                              .setUserLastName(context.getPerson().getLastName())
                              .setUserFirstName(context.getPerson().getFirstName())
                              .setCompanyName(context.getCompany().getName())
                              .setLocale(context.getLocale().toString());
  
              ret = Response.ok().type(MediaType.APPLICATION_JSON).entity(getJSONReply(reply)).build();
          } catch (final Exception e) {
              RestContext.LOG.error("Error processing data.", e);
              final ErrorReply reply = new ErrorReply()
                              .setError(e.getClass().getName())
                              .setMessage(e.getMessage())
                              .setStacktrace(ExceptionUtils.getStackTrace(e));
              ret = Response.serverError().type(MediaType.APPLICATION_JSON).entity(getJSONReply(reply)).build();
          }
          return ret;
      }
docs: Confirm.
  
  @return the response