if (selectionPath != null) {
try {
if (selectionPath.getLastPathComponent() instanceof MessageStoreTreeNode) {
final MessageStoreTreeNode node = (MessageStoreTreeNode) selectionPath.getLastPathComponent();
ReplayMessagesDialog dialog = new ReplayMessagesDialog(node.getMessageStore(), lastHermesId, lastDestination);
dialog.setLocationRelativeTo(HermesBrowser.getBrowser());
dialog.setModal(true);
dialog.setVisible(true);
lastHermesId = dialog.getHermesId();
lastDestination = dialog.getDestination();
}
} catch (Exception ex) {
log.error(ex.getMessage(), ex);
JOptionPane.showMessageDialog(HermesBrowser.getBrowser(), "During replay: " + ex.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);