Source:
<code>public Response saveServerTemplate(@Context HttpHeaders headers, @ApiParam(name = "serverTemplateId", value = "ID of the new KIE Server template", required = true) @PathParam("serverTemplateId") String serverTemplateId, @ApiParam(name = "body", value = "A map containing the server-name, capabilities, and other components of the new KIE Server template", required = true, examples = @Example(value = { @ExampleProperty(mediaType = JSON, value = SERVER_TEMPLATE_JSON), @ExampleProperty(mediaType = XML, value = SERVER_TEMPLATE_XML) })) String serverTemplatePayload, @Context UriInfo uriInfo) { String contentType = getContentType(headers); try { logger.debug("Received save server template with id {}", serverTemplateId); ServerTemplate serverTemplate = unmarshal(serverTemplatePayload, contentType, ServerTemplate.class); if (serverTemplate == null) { return createCorrectVariant("Server template " + serverTemplateId + " not found", headers, Response.Status.NOT_FOUND); } logger.debug("Server template is {}", serverTemplate); specManagementService.saveServerTemplate(serverTemplate); logger.debug("Returning response for save server template with id '{}': CREATED", serverTemplateId); UriBuilder builder = uriInfo.getAbsolutePathBuilder(); <START> builder.path(serverTemplate.getId()); <END> String response = marshal(contentType, new ServiceResponse(KieServiceResponse.ResponseType.SUCCESS, "KIE Server template " + serverTemplateId + " successfully created")); return createCreatedVariant(response, headers, builder); } catch (KieServerControllerException e){ return createCorrectVariant(REQUEST_FAILED_TOBE_PROCESSED + e.getMessage(), headers, Response.Status.BAD_REQUEST); } catch (Exception e) { logger.error("Save server template id failed due to {}", serverTemplateId, e.getMessage(), e); return createCorrectVariant("Unknown error " + e.getMessage(), headers, Response.Status.INTERNAL_SERVER_ERROR); } }</code><technical_language>missing something, uriInfo.getAbsolutePathBuilder(); full path of request including resolved URI path template parameters, e.g. ..../servers/2? If case, I need append another ID calling builder.path(serverTemplate.getId());</technical_language>

Target:
public Response saveServerTemplate(@Context HttpHeaders headers, @ApiParam(name = "serverTemplateId", value = "ID of the new KIE Server template", required = true) @PathParam("serverTemplateId") String serverTemplateId, @ApiParam(name = "body", value = "A map containing the server-name, capabilities, and other components of the new KIE Server template", required = true, examples = @Example(value = { @ExampleProperty(mediaType = JSON, value = SERVER_TEMPLATE_JSON), @ExampleProperty(mediaType = XML, value = SERVER_TEMPLATE_XML) })) String serverTemplatePayload, @Context UriInfo uriInfo) { String contentType = getContentType(headers); try { logger.debug("Received save server template with id {}", serverTemplateId); ServerTemplate serverTemplate = unmarshal(serverTemplatePayload, contentType, ServerTemplate.class); if (serverTemplate == null) { return createCorrectVariant("Server template " + serverTemplateId + " not found", headers, Response.Status.NOT_FOUND); } logger.debug("Server template is {}", serverTemplate); specManagementService.saveServerTemplate(serverTemplate); logger.debug("Returning response for save server template with id '{}': CREATED", serverTemplateId); UriBuilder builder = uriInfo.getAbsolutePathBuilder(); return createCreatedVariant("", headers, builder); } catch (KieServerControllerException e){ return createCorrectVariant(REQUEST_FAILED_TOBE_PROCESSED + e.getMessage(), headers, Response.Status.BAD_REQUEST); } catch (Exception e) { logger.error("Save server template id failed due to {}", serverTemplateId, e.getMessage(), e); return createCorrectVariant("Unknown error " + e.getMessage(), headers, Response.Status.INTERNAL_SERVER_ERROR); } }