final MultivaluedMap<String, String> httpHeaders, final InputStream entityStream) throws IOException,
WebApplicationException {
try {
- if(getUriInfo().getAbsolutePath().getPath().contains("restconf/16")){
+ if (getUriInfo().getAbsolutePath().getPath().contains(RestconfConstants.DRAFT_PATTERN)) {
final org.opendaylight.restconf.jersey.providers.JsonNormalizedNodeBodyReader jsonReaderNewRest =
new org.opendaylight.restconf.jersey.providers.JsonNormalizedNodeBodyReader();
jsonReaderNewRest.injectParams(getUriInfo(), getRequest());