Use ClipboardContent....the action on the table initiated from a Ctrl-C or right click > copy will put something in the clipboard, using something like
ClipboardContent content = new ClipboardContent()
content.putString( utils.formatAsText(selections) )