LOG.error("Input <{}> not found.", inputId);
throw new WebApplicationException(404);
}
// Build extractor.
CreateStaticFieldRequest csfr;
try {
csfr = objectMapper.readValue(body, CreateStaticFieldRequest.class);
} catch(IOException e) {
LOG.error("Error while parsing JSON", e);
throw new WebApplicationException(e, Response.Status.BAD_REQUEST);