input.setGlobal(lr.global);
input.setCreatorUserId(getCurrentUser().getName());
input.setCreatedAt(Tools.iso8601());
input.setConfiguration(inputConfig);
input.checkConfiguration();
} catch (NoSuchInputTypeException e) {
LOG.error("There is no such input type registered.", e);
throw new WebApplicationException(e, Response.Status.NOT_FOUND);
} catch (ConfigurationException e) {
LOG.error("Missing or invalid input configuration.", e);