public String getString(final TaskDO task)
{
if (task == null) {
return "";
}
final TaskFormatter taskFormatter = TaskFormatter.instance();
if (taskFormatter != null) {
return taskFormatter.getTaskPath(task.getId(), true, OutputType.PLAIN);
} else {
// Only for test-cases (if task tree is not initialized)
return task.getTitle();
}
}