// check if the handler supports the message
if (handler.supportsDirection(direction)) {
boolean found = handler.updateMessage(conn, message);
if (!found) {
throw new ObjectNotFoundException("message with id " + message.getId() + " not found");
}
} else {
throw new RejectedException("this message store doesn't supports direction '" + direction + "'");
}
} catch (SQLException e) {