final Map<String, InputDescription> availableInputs = inputRegistry.getAvailableInputs();
if (!availableInputs.containsKey(inputType)) {
LOG.error("Unknown input type {} requested.", inputType);
throw new WebApplicationException(Response.Status.NOT_FOUND);
}
final InputDescription description = availableInputs.get(inputType);
final Map<String, Object> result = Maps.newHashMap();
result.put("type", inputType);
result.put("name", description.getName());
result.put("is_exclusive", description.isExclusive());
result.put("requested_configuration", description.getRequestedConfiguration());
result.put("link_to_docs", description.getLinkToDocs());
return json(result);
}