taskListID = taskListName.substring(0, pos);
taskListName = taskListName.substring(pos+XMLID_FLAG.length());
}
String dataName = data.createDataName(taskListName, XML_DATA_NAME);
SimpleData value = data.getSimpleValue(dataName);
if (!(value instanceof StringData) && taskListID != null) {
dataName = getDataNameForID(data, taskListID);
if (dataName != null)
value = data.getSimpleValue(dataName);
}
if (value instanceof StringData)
return value.format();
else
return null;
}