}
response = session.postMethod(bookingDataURL,
bookingDataParam);
inputStream = HTTPUtils.stringToStream(response);
ConnectionValidationHandler handler = new ConnectionValidationHandler();
reader.setContentHandler(handler);
reader.parse(new InputSource(inputStream));
// TODO: check also whether the time is correct
if(!handler.isValid(connection)) {
String msg = "The parser seems to have an error. The input connection does not fit to the parsed connection returned from the server. Please either report or fix this problem.";
ExceptionUtils.throwError(msg);
log.severe(msg);
}