int priority = set.getInt(4);
long acceptedTime = set.getLong(5);
long sequenceNumber = set.getLong(6);
long expiryTime = set.getLong(7);
boolean delivered = (set.getInt(8) == 0) ? false : true;
MessageHandle handle = new PersistentMessageHandle(
messageId, priority, acceptedTime, sequenceNumber,
expiryTime, dest, consumer);
handle.setDelivered(delivered);
result.add(handle);
}
} catch (SQLException exception) {
throw new PersistenceException(
"Failed to get message handles for destination=" +