private void streamRequest(final HttpServletRequest req, final HttpServletResponse resp) {
try {
final Application ponyApplicationSession = (Application) req.getSession().getAttribute(Application.class.getCanonicalName());
final Long ponySessionID = Long.parseLong(req.getParameter("ponySessionID"));
final UIContext ponySession = ponyApplicationSession.getUIContext(ponySessionID);
final StreamHandler streamHandler = ponySession.removeStreamListener(Long.parseLong(req.getParameter(PROPERTY.STREAM_REQUEST_ID)));
streamHandler.onStream(req, resp);
} catch (final Exception e) {
log.error("Cannot stream request", e);
try {
resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e.getMessage());
} catch (final IOException e1) {