{
final Domain domain = Domain.getDomain(rs.getInt(2)) ;
if (domain.equals(Domain.QUEUE)) {
destinations.add( new MessageStoreQueue(rs.getString(1)));
} else if (domain.equals(Domain.TOPIC)) {
destinations.add(new MessageStoreTopic(rs.getString(1))) ;
} else if (domain.equals(Domain.FOLDER)) {
destinations.add(new MessageStoreFolder(rs.getString(1))) ;
}
}