return internalPostWithId(dupId, durable, ttl, expiration, priority, headers, uriInfo, body);
}
private Response internalPostWithId(String dupId, Boolean durable, Long ttl, Long expiration, Integer priority, HttpHeaders headers, UriInfo uriInfo, byte[] body) {
String matched = uriInfo.getMatchedURIs().get(1);
UriBuilder nextBuilder = uriInfo.getBaseUriBuilder();
String nextId = generateDupId();
nextBuilder.path(matched).path(nextId);
URI next = nextBuilder.build();
boolean isDurable = defaultDurable;
if (durable != null)
{
isDurable = durable.booleanValue();