<s>[INST] this method exists solely to concentrate usage of javax.ws.rs.core.response #created java.net.uri intoone place until this jira is resolved somehow . concode_field_sep PlaceHolder placeHolder concode_field_sep void createPagingHeader concode_elem_sep InputStream pageToStream concode_elem_sep Response.ResponseBuilder pagedResponse concode_elem_sep Response.ResponseBuilder pagedResponse [/INST] Response . ResponseBuilder function ( AbstractElement arg0 , UriInfo arg1 , String arg2 ) { return Response . status ( CREATED ) . location ( arg1 . getRequestUriBuilder ( ) . segment ( arg2 ) . build ( ) ) . entity ( arg0 ) ; </s>