if (currentPath.getLastPathComponent() instanceof DestinationConfigTreeNode) {
final DestinationConfigTreeNode destinationNode = HermesBrowser.getBrowser().getBrowserTree().getSelectedDestinationNodes().get(0);
final DestinationConfig destinationConfig = destinationNode.getConfig();
h = ((HermesTreeNode) destinationNode.getParent()).getHermes();
task = new BrowseDestinationTask(h, destinationConfig);
f = destinationConfig.getName();
} else {
MessageStore messageStore = HermesBrowser.getBrowser().getBrowserTree().getSelectedMessageStore();
h = getMyHermes();
task = new BrowseMessageStoreTask(h, messageStore, null, null);