} catch (ConfigurationException e) {
LOG.error("Cannot create extractor. Missing configuration.", e);
throw new WebApplicationException(e, Response.Status.BAD_REQUEST);
}
Input mongoInput = inputService.find(input.getPersistId());
try {
inputService.addExtractor(mongoInput, extractor);
} catch (ValidationException e) {
LOG.error("Extractor persist validation failed.", e);
throw new WebApplicationException(e, Response.Status.BAD_REQUEST);