public ArrayList<Track> getSelectedTracks(boolean createNew) {
ArrayList<Track> tracks = new ArrayList<Track>();
TreePath[] selectionPaths = getSelectionPaths();
if (selectionPaths != null)
for (TreePath path : selectionPaths) {
MappedTreeNode node = (MappedTreeNode) path.getLastPathComponent();
List<MappedTreeNode> nodes = node.iterate();
for (MappedTreeNode treeNode : nodes) {
if (treeNode instanceof TrackNode) {
Track track = ((TrackNode) treeNode).getTrack();
if (createNew) {