* @param type Type of object to browse, for example "Artist.composer"
* @param searchCriterias List of search criterias besided the type of object that should be used, should be in format "Artist:xxxx"
* @return A new Task object, you need to call the execute method to actually execute the task
*/
public Task createTask(final TableView tableView, final String type, final List<String> searchCriterias) {
Task task = new Task<Void>() {
@Override
public Void execute() throws TaskExecutionException {
if (tableView == tracksTableView && searchCriterias.getLength() == 0) {
tableView.getTableData().clear();
((List<TableViewItem>) tableView.getTableData()).add(new TableViewItem(null, "(Too many matching tracks, select some criterias)", null));