} catch (NumberFormatException ex) {
throw new IllegalParameterException("Error during converting " + id + " parameter to Integer", ex);
}
FlowEvent event = provider.getEventDetails(eventId);
if (null == event) {
throw new ResourceNotFoundException("There no event with " + id + " ID can be found");
}
return Response.ok(event).build();
}